add a minor delay to make keyboard opens in editor

This commit is contained in:
ammarahm-ed
2020-12-29 19:42:47 +05:00
parent 9c3e6163ea
commit 485bd28a38

View File

@@ -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');