A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix focus after actionsheet close
ammarahm-ed5d9b8acd0d45
diff --git a/apps/mobile/initializer.root.js b/apps/mobile/initializer.root.jsindex 9f1541b43..2ac8b04c9 100644--- a/apps/mobile/initializer.root.js+++ b/apps/mobile/initializer.root.js@@ -43,12 +43,11 @@ let currentTab = 0;const onChangeTab = async (obj) => {if (obj.i === 1) {eSendEvent(eCloseSideMenu);- if (getIntent()) return;movedAway = false;currentTab = 1;activateKeepAwake();eSendEvent('navigate');- editing.isFocused = false;+if (!editing.currentlyEditing || !getNote()) {eSendEvent(eOnLoadNote, {type: 'new'});editing.currentlyEditing = true;@@ -62,6 +61,7 @@ const onChangeTab = async (obj) => {movedAway = true;post('blur');}+ editing.isFocused = false;currentTab = 0;eSendEvent(eOpenSideMenu);}diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.jsindex ba4a48348..f9eb329cd 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js@@ -66,6 +66,7 @@ const ActionSheetWrapper = ({/>}onClose={() => {+ console.log(editing.isFocused,editing.focusType)if (editing.isFocused === true) {post('blur');if (editing.focusType == "editor") {diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.jsindex 37fc83d3f..e10a9f99a 100644--- a/apps/mobile/src/views/Editor/EditorHeader.js+++ b/apps/mobile/src/views/Editor/EditorHeader.js@@ -71,6 +71,7 @@ const EditorHeader = () => {}return true;}+ editing.isFocused = false;editing.currentlyEditing = false;if (DDS.isLargeTablet()) {if (fullscreen) {