From 4408247ea204711d66c86d77874d394a0695f6f3 Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Mon, 25 Nov 2024 12:52:02 -0500 Subject: [PATCH] fix bootstrap simple_form date inputs --- config/initializers/simple_form_bootstrap.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/simple_form_bootstrap.rb b/config/initializers/simple_form_bootstrap.rb index 26b752532..1115a29a1 100644 --- a/config/initializers/simple_form_bootstrap.rb +++ b/config/initializers/simple_form_bootstrap.rb @@ -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 @@ -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,