mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Disallow clicking pill when nothing is selected
This commit is contained in:
parent
5e911d814c
commit
386a4c94ba
1 changed files with 5 additions and 4 deletions
|
@ -97,10 +97,11 @@
|
|||
(mf/deps selected-shapes token-type-props)
|
||||
(fn [event token]
|
||||
(dom/stop-propagation event)
|
||||
(st/emit!
|
||||
(wtc/toggle-token {:token token
|
||||
:shapes selected-shapes
|
||||
:token-type-props token-type-props}))))
|
||||
(when (seq selected-shapes)
|
||||
(st/emit!
|
||||
(wtc/toggle-token {:token token
|
||||
:shapes selected-shapes
|
||||
:token-type-props token-type-props})))))
|
||||
tokens-count (count tokens)]
|
||||
[:div {:on-click on-toggle-open-click}
|
||||
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
||||
|
|
Loading…
Add table
Reference in a new issue