0
Fork 0
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:
alonso.torres 2020-06-03 07:57:14 +02:00
parent 2f79e79498
commit 7861c81538
2 changed files with 3 additions and 2 deletions

View file

@ -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))))

View file

@ -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}])