mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 18:27:26 +02: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
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [mdata {:position position
|
(let [mdata {:position position
|
||||||
:shape shape}]
|
:shape shape
|
||||||
|
:selected (get-in state [:workspace-local :selected])}]
|
||||||
(-> state
|
(-> state
|
||||||
(assoc-in [:workspace-local :context-menu] mdata))))
|
(assoc-in [:workspace-local :context-menu] mdata))))
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
:shortcut "g"
|
:shortcut "g"
|
||||||
:on-click do-create-group}])
|
:on-click do-create-group}])
|
||||||
|
|
||||||
(when (and (= (count selected)) (= (:type shape) :group))
|
(when (and (= (count selected) 1) (= (:type shape) :group))
|
||||||
[:& menu-entry {:title "Ungroup"
|
[:& menu-entry {:title "Ungroup"
|
||||||
:shortcut "Shift + g"
|
:shortcut "Shift + g"
|
||||||
:on-click do-remove-group}])
|
:on-click do-remove-group}])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue