diff --git a/app/editor/components/FindAndReplace.tsx b/app/editor/components/FindAndReplace.tsx index a5232271b..f2b8032f9 100644 --- a/app/editor/components/FindAndReplace.tsx +++ b/app/editor/components/FindAndReplace.tsx @@ -29,6 +29,7 @@ type Props = { export default function FindAndReplace({ readOnly }: Props) { const editor = useEditor(); + const finalFocusRef = React.useRef(editor.view.dom); const selectionRef = React.useRef(); const inputRef = React.useRef(null); const { t } = useTranslation(); @@ -224,6 +225,7 @@ export default function FindAndReplace({ readOnly }: Props) {