0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

📎 Add better key formatting on radio-buttons react component

This commit is contained in:
Andrey Antukh 2024-01-10 14:26:58 +01:00
parent 5ec1272d68
commit e856387292

View file

@ -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))}