mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Fixes issue with context menu
This commit is contained in:
parent
2f79e79498
commit
7861c81538
2 changed files with 3 additions and 2 deletions
|
@ -1020,7 +1020,8 @@
|
|||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [mdata {:position position
|
||||
:shape shape}]
|
||||
:shape shape
|
||||
:selected (get-in state [:workspace-local :selected])}]
|
||||
(-> state
|
||||
(assoc-in [:workspace-local :context-menu] mdata))))
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
:shortcut "g"
|
||||
:on-click do-create-group}])
|
||||
|
||||
(when (and (= (count selected)) (= (:type shape) :group))
|
||||
(when (and (= (count selected) 1) (= (:type shape) :group))
|
||||
[:& menu-entry {:title "Ungroup"
|
||||
:shortcut "Shift + g"
|
||||
:on-click do-remove-group}])
|
||||
|
|
Loading…
Add table
Reference in a new issue