mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix problems with data-value keyword
This commit is contained in:
parent
189d0c107c
commit
6ef85ef0e8
18 changed files with 57 additions and 53 deletions
|
@ -57,8 +57,10 @@
|
|||
(mf/deps exports)
|
||||
(fn [event]
|
||||
(let [index (-> (dom/get-current-target event)
|
||||
(dom/get-data "value"))]
|
||||
(swap! exports update-in [index :enabled] not))))
|
||||
(dom/get-data "value")
|
||||
(d/parse-integer))]
|
||||
(when (some? index)
|
||||
(swap! exports update-in [index :enabled] not)))))
|
||||
|
||||
change-all
|
||||
(fn [_]
|
||||
|
@ -104,7 +106,7 @@
|
|||
[:div {:class (stl/css :selection-row)
|
||||
:key (:id shape)}
|
||||
[:button {:class (stl/css :selection-btn)
|
||||
:data-value index
|
||||
:data-value (str index)
|
||||
:on-click on-toggle-enabled}
|
||||
[:span {:class (stl/css :checkbox-wrapper)}
|
||||
(if (:enabled export)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue