🐛 Fix shape operations on sidebar when using interaction observer

This commit is contained in:
Elena Torro
2026-01-26 15:52:19 +01:00
committed by Alejandro Alonso
parent 947aa22dee
commit 2a7c24f6fd

View File

@@ -423,7 +423,8 @@
(reset! observer-var nil))))
;; Re-observe sentinel whenever children-count changes (sentinel moves)
(mf/with-effect [children-count expanded?]
;; and (shapes item) to reconnect observer after shape changes
(mf/with-effect [children-count expanded? (:shapes item)]
(let [total (count (:shapes item))
node (mf/ref-val ref)
scroll-node (dom/get-parent-with-data node "scroll-container")