editor: fix crash when app is unlocked after a relock (#9698)

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2026-04-13 20:35:16 +05:00
committed by GitHub
parent 4044b68701
commit d6f7f0c0be

View File

@@ -121,6 +121,7 @@ export const useEditor = (
function destroyView(view: EditorView) {
// we override all the methods to prevent any further interaction with the
// editor, otherwise we'll get errors.
view.focus = () => {};
view.dispatch = () => {};
view.update = () => {};
view.updateState = () => {};