mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix right click options over layer or shape
This commit is contained in:
@@ -1259,9 +1259,10 @@
|
|||||||
(not (contains? #{:group :bool} (:type head))))
|
(not (contains? #{:group :bool} (:type head))))
|
||||||
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
|
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
|
||||||
|
|
||||||
|
(if (and (some? shape) (not (contains? selected (:id shape))))
|
||||||
(rx/concat
|
(rx/concat
|
||||||
(when (and (some? shape) (not (contains? selected (:id shape))))
|
(rx/of (dws/select-shape (:id shape)))
|
||||||
(rx/of (dws/select-shape (:id shape))))
|
(rx/of (show-shape-context-menu params)))
|
||||||
(rx/of (show-context-menu
|
(rx/of (show-context-menu
|
||||||
(-> params
|
(-> params
|
||||||
(assoc
|
(assoc
|
||||||
|
|||||||
Reference in New Issue
Block a user