🐛 Fix group automatically selected after creation

This commit is contained in:
Alejandro Alonso 2024-06-11 09:59:35 +02:00 committed by Andrey Antukh
parent 38fa5be862
commit c5bf2a775e
6 changed files with 246 additions and 2 deletions

View file

@ -203,7 +203,7 @@
ptk/WatchEvent
(watch [_ state _]
(let [selected (wsh/lookup-selected state)]
(rx/of (group-shapes nil selected))))))
(rx/of (group-shapes nil selected :change-selection? true))))))
(defn ungroup-shapes
[ids & {:keys [change-selection?] :or {change-selection? false}}]

View file

@ -59,6 +59,7 @@
:ref dref
:on-click on-select-shape
:on-context-menu on-context-menu
:data-testid "layer-row"
:class (stl/css-case
:layer-row true
:highlight highlighted?