Skip to content

Commit

Permalink
fix bootstrap simple_form date inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Nov 25, 2024
1 parent 4f4da2a commit 4408247
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/initializers/simple_form_bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#
# * instead of an mb-3 utility on each wrapper, we use bootstrap 4-style .form-group, which we style manually.
#
# * date and datetime types use vertical_form instead of vertical_multi_select, was adding a caret we didn't want
#
##########

# These defaults are defined and maintained by the community at
Expand Down Expand Up @@ -384,8 +386,8 @@
config.wrapper_mappings = {
boolean: :vertical_boolean,
check_boxes: :vertical_collection,
date: :vertical_multi_select,
datetime: :vertical_multi_select,
date: :vertical_form, # was vertical_multi_select from simple form, but that was wrong
datetime: :vertical_form, # was vertical_multi_select from simple form, but that was wrong
file: :vertical_file,
radio_buttons: :vertical_collection,
range: :vertical_range,
Expand Down

0 comments on commit 4408247

Please sign in to comment.