From 4ef04aba55a4558f444e670170ddbd36fb8b0c42 Mon Sep 17 00:00:00 2001 From: Joan Perals Tresserra Date: Fri, 22 Sep 2023 07:20:38 +0200 Subject: [PATCH] Restore missing state update --- pages/dropdown/width.page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/dropdown/width.page.tsx b/pages/dropdown/width.page.tsx index 39ea2d9b01..caf92f1026 100644 --- a/pages/dropdown/width.page.tsx +++ b/pages/dropdown/width.page.tsx @@ -209,6 +209,7 @@ export default function () { const [loading, setLoading] = useState(asyncLoading); const onOpen = () => { if (asyncLoading) { + setLoading(true); setTimeout(() => setLoading(false), 500); } };