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(() => {
|
useEffect(() => {
|
||||||
if (!loading) {
|
if (!loading) {
|
||||||
|
resizeTextarea();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resizeTextarea();
|
resizeTextarea();
|
||||||
}, 300);
|
}, 100);
|
||||||
}
|
}
|
||||||
}, [loading, resizeTextarea]);
|
}, [loading, resizeTextarea]);
|
||||||
|
|
||||||
@@ -154,6 +155,9 @@ function Title({
|
|||||||
onPaste={() => {
|
onPaste={() => {
|
||||||
resizeTextarea();
|
resizeTextarea();
|
||||||
}}
|
}}
|
||||||
|
onCut={() => {
|
||||||
|
resizeTextarea();
|
||||||
|
}}
|
||||||
placeholder={titlePlaceholder}
|
placeholder={titlePlaceholder}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user