From 2d5500d96f7541d03e4fbfe75ec1d2d588cbd707 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 21 Feb 2024 12:15:33 +0100 Subject: [PATCH] :sparkles: And minor enhancements to the radio-buttons react component And fix blur handling when on-change is not provided --- frontend/src/app/main/ui/components/radio_buttons.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/components/radio_buttons.cljs b/frontend/src/app/main/ui/components/radio_buttons.cljs index 6c7d3c73a..1e4f23b52 100644 --- a/frontend/src/app/main/ui/components/radio_buttons.cljs +++ b/frontend/src/app/main/ui/components/radio_buttons.cljs @@ -18,7 +18,7 @@ (mf/defc radio-button {::mf/props :obj} - [{:keys [icon id value disabled title unique-key icon-class type]}] + [{:keys [icon id value disabled title icon-class type]}] (let [context (mf/use-ctx context) allow-empty (unchecked-get context "allow-empty") type (if ^boolean type @@ -39,7 +39,6 @@ [:label {:html-for id :title title - :key unique-key :class (stl/css-case :radio-icon true :checked checked?