Skip to content

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

fix link input cannot be focused

ammarahm-edad5c3882a435
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
index 28fe97ad6..d0ebce224 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
@@ -36,11 +36,6 @@ const ToolbarLinkInput = ({format, value, setVisible}) => {
properties.inputMode = value ? INPUT_MODE.NO_EDIT : INPUT_MODE.EDITING;
editing.tooltip = format;
properties.userBlur = false;
- if (properties.pauseSelectionChange) {
- setTimeout(() => {
- properties.pauseSelectionChange = false;
- }, 100);
- }
return () => {
properties.inputMode = null;
editing.tooltip = null;
@@ -53,7 +48,7 @@ const ToolbarLinkInput = ({format, value, setVisible}) => {
if (properties.pauseSelectionChange) {
setTimeout(() => {
properties.pauseSelectionChange = false;
- }, 100);
+ }, 500);
}
inputRef.current?.focus();
return;