Skip to content

Commit 3af8f46

Browse files
committed
Fix some failing tests
1 parent d0f6c4d commit 3af8f46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/bootstrap_form/inputs/inputs_collection.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def field_layout(options)
3333
end
3434

3535
def group_label_class(field_layout)
36-
debugger
3736
if layout_horizontal?(field_layout)
3837
group_label_class = "col-form-label #{label_col} pt-0"
3938
elsif layout_inline?(field_layout)
@@ -118,8 +117,7 @@ def field_group(name, options, &)
118117
end
119118

120119
def generate_legend(name, options)
121-
debugger
122-
legend_class = group_label_class(field_layout(options)) || "form-label"
120+
legend_class = options.dig(:label, :class) || "form-label"
123121
id = options[:id] || default_id(name)
124122

125123
tag.div(

0 commit comments

Comments
 (0)