fix standalone radio

pull/480/head
Pete Matsyburka 6 months ago
parent 38e68814cf
commit 96bb4eb6e5

@ -161,7 +161,7 @@ module Templates
options: build_options(field.allowed_values, 'radio'), options: build_options(field.allowed_values, 'radio'),
default_value: selected_option 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, **attrs,
type: 'checkbox', type: 'checkbox',

Loading…
Cancel
Save