mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 04:26:11 +02:00
Deselect all auto removed groups in drag & drop operations.
This fixes strange corner case that causes enabling the grouping button when no visible shape is selected.
This commit is contained in:
parent
cc0b61f122
commit
57e98487e1
3 changed files with 111 additions and 97 deletions
|
@ -154,7 +154,8 @@
|
|||
[state {:keys [group] :as shape}]
|
||||
(if-let [group' (get-in state [:shapes group])]
|
||||
(if (empty? (:items group'))
|
||||
(dissoc-shape state group')
|
||||
(-> (dissoc-shape state group')
|
||||
(update-in [:workspace :selected] disj (:id group')))
|
||||
state)
|
||||
state))
|
||||
|
||||
|
|
|
@ -84,7 +84,8 @@
|
|||
:path i/curve
|
||||
:rect i/box
|
||||
:text i/text
|
||||
:group i/folder))
|
||||
:group i/folder
|
||||
nil))
|
||||
|
||||
;; --- Shape Name (Component)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue