mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +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
|
||||
(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]
|
||||
(when (dom/left-mouse? event)
|
||||
(when (and (dom/left-mouse? event) (not blocked?))
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)
|
||||
(on-frame-select event (:id frame)))))
|
||||
|
||||
Reference in New Issue
Block a user