mirror of
https://github.com/penpot/penpot.git
synced 2026-07-29 17:36:17 +00:00
🐛 Fixes issue with context menu
This commit is contained in:
parent
2f79e79498
commit
7861c81538
@ -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…
x
Reference in New Issue
Block a user