Skip to content

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

mobile: fix resize input delay too long

Ammar Ahmeddf7d91e4f3e1
diff --git a/packages/editor-mobile/src/components/title.tsx b/packages/editor-mobile/src/components/title.tsx
index 6dd6675b7..1cc77f0aa 100644
--- a/packages/editor-mobile/src/components/title.tsx
+++ b/packages/editor-mobile/src/components/title.tsx
@@ -73,9 +73,10 @@ function Title({
useEffect(() => {
if (!loading) {
+ resizeTextarea();
setTimeout(() => {
resizeTextarea();
- }, 300);
+ }, 100);
}
}, [loading, resizeTextarea]);
@@ -154,6 +155,9 @@ function Title({
onPaste={() => {
resizeTextarea();
}}
+ onCut={() => {
+ resizeTextarea();
+ }}
placeholder={titlePlaceholder}
/>
</>