From 96bb4eb6e5b2672f98a5c34ac6da43872d8c81c9 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 29 Apr 2025 20:15:32 +0300 Subject: [PATCH] fix standalone radio --- lib/templates/find_acro_fields.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/find_acro_fields.rb b/lib/templates/find_acro_fields.rb index b9fcc3d8..b02bbdfc 100644 --- a/lib/templates/find_acro_fields.rb +++ b/lib/templates/find_acro_fields.rb @@ -161,7 +161,7 @@ module Templates options: build_options(field.allowed_values, 'radio'), default_value: selected_option } - elsif field.field_type == :Btn && field.concrete_field_type == :check_box + elsif field.field_type == :Btn && %i[check_box radio_button].include?(field.concrete_field_type) { **attrs, type: 'checkbox',