mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
Open element options when shape is selected.
This commit is contained in:
parent
6f92604d87
commit
20e89cb8a7
@ -341,10 +341,11 @@
|
||||
(reify
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(let [selected (get-in state [:workspace :selected])]
|
||||
(if (contains? selected id)
|
||||
(update-in state [:workspace :selected] disj id)
|
||||
(update-in state [:workspace :selected] conj id))))))
|
||||
(let [selected (get-in state [:workspace :selected])
|
||||
state (if (contains? selected id)
|
||||
(update-in state [:workspace :selected] disj id)
|
||||
(update-in state [:workspace :selected] conj id))]
|
||||
(update-in state [:workspace :flags] conj :element-options)))))
|
||||
|
||||
;; --- Select Shapes
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user