mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 09:08:35 +02:00
🐛 Remove react error about usage of select options
This commit is contained in:
parent
5791a98c1c
commit
200983fb7c
2 changed files with 5 additions and 5 deletions
|
@ -85,12 +85,12 @@
|
|||
{:class (classnames :icons-tab (= section :icons)
|
||||
:images-tab (= section :images))}
|
||||
[:select.input-select.library-tab-libraries
|
||||
{:on-change #(st/emit! (dlib/select-library section (-> % dom/get-target dom/get-value uuid)))}
|
||||
{:value current-selection
|
||||
:on-change #(st/emit! (dlib/select-library section (-> % dom/get-target dom/get-value uuid)))}
|
||||
(for [library libraries]
|
||||
[:option.library-tab-libraries-item
|
||||
{:key (:id library)
|
||||
:value (:id library)
|
||||
:selected (= current-selection (:id library))}
|
||||
:value (:id library)}
|
||||
(:name library)])]
|
||||
[:div.library-tab-content
|
||||
(let [items (mf/deref (selected-items-ref section current-selection))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue