mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -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)
|
(mf/deps selected-shapes token-type-props)
|
||||||
(fn [event token]
|
(fn [event token]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(st/emit!
|
(when (seq selected-shapes)
|
||||||
(wtc/toggle-token {:token token
|
(st/emit!
|
||||||
:shapes selected-shapes
|
(wtc/toggle-token {:token token
|
||||||
:token-type-props token-type-props}))))
|
:shapes selected-shapes
|
||||||
|
:token-type-props token-type-props})))))
|
||||||
tokens-count (count tokens)]
|
tokens-count (count tokens)]
|
||||||
[:div {:on-click on-toggle-open-click}
|
[:div {:on-click on-toggle-open-click}
|
||||||
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
||||||
|
|
Loading…
Add table
Reference in a new issue