From 7fa6631005c313d225875bb3688ab21846b9e295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Fri, 31 Jul 2026 10:29:26 +0200 Subject: [PATCH] :bug: Fix collapsed fills section on text shapes (#10972) --- .../app/main/ui/workspace/sidebar/options/menus/fill.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/fill.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/fill.cljs index 258a9a9ac2..4141143a6e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/fill.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/fill.cljs @@ -84,8 +84,10 @@ empty-fills? (and (not multiple?) (= 0 (count fills))) - open* (mf/use-state has-fills?) - open? (deref open*) + ;; Derive the open state from `has-fills?` on every render so it stays + ;; in sync even when the fills arrive after mount (editor v3) + open* (mf/use-state true) + open? (and has-fills? (deref open*)) toggle-content (mf/use-fn #(swap! open* not)) open-content (mf/use-fn #(reset! open* true))