Skip to content

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

add a minor delay to make keyboard opens in editor

ammarahm-ed485bd28a38ed
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 60724e48c..79ac2e40f 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -150,18 +150,18 @@ function clearNote() {
};
}
-let currentEditingTimer = null;
+let currentEditingTimer = null;
export const loadNote = async (item) => {
editing.currentlyEditing = true;
post('blur');
if (item && item.type === 'new') {
- if (intent) return;
- await clearEditor();
+ await clearEditor();
clearNote();
noteEdited = false;
id = null;
+ await sleep(10);
if (Platform.OS === 'android') {
textInput.current?.focus();
post('focusTitle');