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:
renovate[bot]
2025-03-04 15:36:57 +00:00
committed by GitHub
parent 1770b94ed3
commit 9d8efacede
4 changed files with 9 additions and 9 deletions

View File

@@ -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,
) {

View File

@@ -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);