From cf1c03f55fea05d88ba99c4521ce94f71cebfcc4 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 1 Jan 2023 15:32:36 +0800 Subject: [PATCH] Delay focus compose field a little --- src/components/compose.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 7d043a1e..e2c408ba 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -131,8 +131,9 @@ function Compose({ }; const focusTextarea = () => { setTimeout(() => { + console.log('focusing'); textareaRef.current?.focus(); - }, 100); + }, 300); }; useEffect(() => {