Skip to content

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

fix editor focusing

ammarahm-ed512aee9c8ccd
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
index 6f3807137..ba4a48348 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
@@ -66,7 +66,7 @@ const ActionSheetWrapper = ({
/>
}
onClose={() => {
- if (editing.isFocused) {
+ if (editing.isFocused === true) {
post('blur');
if (editing.focusType == "editor") {
post('focusEditor');
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index cc9cef4a6..980944a3f 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -169,7 +169,7 @@ export const loadNote = async (item) => {
if (!webviewInit) {
EditorWebView.current?.reload();
}
- } else if (item && item.type === 'intent') {
+ } /* else if (item && item.type === 'intent') {
await clearEditor();
clearNote();
id = null;
@@ -177,13 +177,15 @@ export const loadNote = async (item) => {
data: item.data,
type: 'delta',
};
+
intent = true;
if (webviewInit) {
await loadNoteInEditor();
} else {
EditorWebView.current?.reload();
}
- } else {
+ } */ else {
+ editing.isFocused = false;
clearTimer();
await setNote(item);
sendNoteEditedEvent({