mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
add a minor delay to make keyboard opens in editor
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user