Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Jan 23, 2025
1 parent 94892d0 commit 0bc6cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dsfr-form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def dsfr_check_box(attribute, opts = {})
end
end

def dsfr_select(attribute, choices, opts = { input_options: {} })
def dsfr_select(attribute, choices, input_options: {}, **opts)
@template.content_tag(:div, class: "fr-select-group") do
@template.safe_join(
[
dsfr_label_with_hint(attribute, opts.except(:input_options)),
dsfr_select_tag(attribute, choices, **opts, **(opts[:input_options] || {})),
dsfr_label_with_hint(attribute, opts),
dsfr_select_tag(attribute, choices, **opts, **(input_options)),
dsfr_error_message(attribute)
]
)
Expand Down

0 comments on commit 0bc6cbe

Please sign in to comment.