mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 17:16:26 +01:00
Delay focus compose field a little
This commit is contained in:
parent
2031e88d87
commit
cf1c03f55f
1 changed files with 2 additions and 1 deletions
|
@ -131,8 +131,9 @@ function Compose({
|
||||||
};
|
};
|
||||||
const focusTextarea = () => {
|
const focusTextarea = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
console.log('focusing');
|
||||||
textareaRef.current?.focus();
|
textareaRef.current?.focus();
|
||||||
}, 100);
|
}, 300);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue