Delay focus compose field a little

This commit is contained in:
Lim Chee Aun 2023-01-01 15:32:36 +08:00
parent 2031e88d87
commit cf1c03f55f

View file

@ -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(() => {