Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: keyboard jittering when search is ended

ammarahm-eda1c63ad7e296
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
index 16f7c2e43..afdf7812f 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
@@ -9,8 +9,8 @@ export const endSearch = () => {
EditorWebView,
`tinymce.activeEditor.plugins.searchreplace.done()`
);
- useEditorStore.getState().setSearchReplace(false);
textInput.current?.focus();
+ useEditorStore.getState().setSearchReplace(false);
Platform.OS === 'android' && EditorWebView.current?.requestFocus();
tiny.call(EditorWebView, tiny.focusEditor);
}