mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +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 = () => {
|
||||
setTimeout(() => {
|
||||
console.log('focusing');
|
||||
textareaRef.current?.focus();
|
||||
}, 100);
|
||||
}, 300);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue