mobile: fix resize input delay too long

This commit is contained in:
Ammar Ahmed
2025-10-29 11:38:51 +05:00
parent 7eefecd961
commit df7d91e4f3

View File

@@ -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}
/>
</>