mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
mobile: fix resize input delay too long
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user