Skip to content

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

fix actionsheet open flicker on ios

ammarahm-edd78ba1502a7c
diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.js
index af0f140fe..37fc83d3f 100644
--- a/apps/mobile/src/views/Editor/EditorHeader.js
+++ b/apps/mobile/src/views/Editor/EditorHeader.js
@@ -16,6 +16,7 @@ import {
eOpenFullscreenEditor
} from '../../utils/Events';
import { sideMenuRef, tabBarRef } from '../../utils/Refs';
+import { sleep } from '../../utils/TimeUtils';
import { EditorTitle } from './EditorTitle';
import {
checkNote,
@@ -172,8 +173,13 @@ const EditorHeader = () => {
customStyle={{
marginLeft: 10,
}}
- onPress={() => {
+ onPress={async () => {
let note = getNote() && db.notes.note(getNote().id).data;
+ if (editing.isFocused) {
+ post('blur');
+ await sleep(500);
+ editing.isFocused = true;
+ }
ActionSheetEvent(
note,
true,