From df7d91e4f3e1d048b8393c78e213b200fd64ab64 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Wed, 29 Oct 2025 11:38:51 +0500 Subject: [PATCH] mobile: fix resize input delay too long --- packages/editor-mobile/src/components/title.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} />