0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

Merge pull request #3327 from penpot/superalex-fix-right-click-options-over-layer-or-shape

🐛 Fix right click options over layer or shape
This commit is contained in:
Pablo Alba 2023-06-21 12:22:24 +02:00 committed by GitHub
commit 3645d1af20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1259,9 +1259,10 @@
(not (contains? #{:group :bool} (:type head))))
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
(if (and (some? shape) (not (contains? selected (:id shape))))
(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
(-> params
(assoc