mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Do not select a blocked frame when clicking its name
This commit is contained in:
committed by
Alejandro Alonso
parent
e28d4eaff1
commit
18048a4b2e
@@ -100,9 +100,9 @@
|
|||||||
|
|
||||||
on-pointer-down
|
on-pointer-down
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps (:id frame) on-frame-select workspace-read-only?)
|
(mf/deps (:id frame) on-frame-select workspace-read-only? blocked?)
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(when (dom/left-mouse? event)
|
(when (and (dom/left-mouse? event) (not blocked?))
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(on-frame-select event (:id frame)))))
|
(on-frame-select event (:id frame)))))
|
||||||
|
|||||||
Reference in New Issue
Block a user