From e8563872924d00b0dda0dd9ebbcc749d154a6c49 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 10 Jan 2024 14:26:58 +0100 Subject: [PATCH] :paperclip: Add better key formatting on radio-buttons react component --- frontend/src/app/main/ui/components/forms.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/components/forms.cljs b/frontend/src/app/main/ui/components/forms.cljs index 88cd4fd42..9ce9ae13d 100644 --- a/frontend/src/app/main/ui/components/forms.cljs +++ b/frontend/src/app/main/ui/components/forms.cljs @@ -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))}