mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
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:
@@ -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 = () => {};
|
||||
|
||||
Reference in New Issue
Block a user