Skip to content

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

hide searchreplace

ammarahm-edd291796b0a33
diff --git a/apps/mobile/src/navigation/RootView.js b/apps/mobile/src/navigation/RootView.js
index 5a7a91f65..694de7500 100644
--- a/apps/mobile/src/navigation/RootView.js
+++ b/apps/mobile/src/navigation/RootView.js
@@ -14,7 +14,7 @@ import {Menu} from '../components/Menu';
import {Toast} from '../components/Toast';
import {NavigatorStack} from './NavigatorStack';
import {useTracked} from '../provider';
-import {useSettingStore} from '../provider/stores';
+import {useEditorStore, useSettingStore} from '../provider/stores';
import {DDS} from '../services/DeviceDetection';
import {
eSendEvent,
@@ -61,6 +61,7 @@ const onChangeTab = async obj => {
updateStatusBarColor();
deactivateKeepAwake();
eSendEvent(eClearEditor, 'removeHandler');
+ setTimeout(() => useEditorStore.getState().setSearchReplace(false),1);
if (getNote()?.locked) {
eSendEvent(eClearEditor);
}