Skip to content

Commit d9d87a6

Browse files
committed
fix: pass merged_input_options to check_box in ToggleInput
The check_box was called with empty options, losing the form attribute needed when the input is defined outside the form tag via HTML5 form association. This worked in ViewComponent v3 due to the ActionView::Base capture compatibility patch, which was removed in v4.
1 parent cb95fd2 commit d9d87a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/inputs/essence/toggle_input.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def input(wrapper_options = nil)
66
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
77

88
@builder.label(attribute_name, merged_input_options) { '' } +
9-
build_check_box(unchecked_value, {})
9+
build_check_box(unchecked_value, merged_input_options)
1010
end
1111
end
1212
end

0 commit comments

Comments
 (0)