mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 10:11:18 +00:00
📎 Add better key formatting on radio-buttons react component
This commit is contained in:
@@ -268,7 +268,7 @@
|
||||
(let [image? (some? image)
|
||||
value' (encode-fn value)
|
||||
checked? (= value current-value)
|
||||
key (str/ffmt "%-%" name value')]
|
||||
key (str/ffmt "%-%" (d/name name) (d/name value'))]
|
||||
[:label {:for key
|
||||
:key key
|
||||
:style {:background-image (when image? (str/ffmt "url(%)" image))}
|
||||
|
||||
Reference in New Issue
Block a user