Update dependency @vector-im/matrix-wysiwyg to v2.38.2 (#28708)
* Update dependency @vector-im/matrix-wysiwyg to v2.38.2 * Fix types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ interface EditorProps {
|
||||
}
|
||||
|
||||
export const Editor = memo(
|
||||
forwardRef<HTMLDivElement, EditorProps>(function Editor(
|
||||
forwardRef<HTMLDivElement | null, EditorProps>(function Editor(
|
||||
{ disabled, placeholder, leftComponent, rightComponent }: EditorProps,
|
||||
ref,
|
||||
) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { type RefObject, useEffect } from "react";
|
||||
|
||||
import { setCursorPositionAtTheEnd } from "./utils";
|
||||
|
||||
export function useSetCursorPosition(disabled: boolean, ref: RefObject<HTMLElement>): void {
|
||||
export function useSetCursorPosition(disabled: boolean, ref: RefObject<HTMLDivElement | null>): void {
|
||||
useEffect(() => {
|
||||
if (ref.current && !disabled) {
|
||||
setCursorPositionAtTheEnd(ref.current);
|
||||
|
||||
Reference in New Issue
Block a user