heartcombo / simple_form

Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
http://blog.plataformatec.com.br/tag/simple_form
MIT License
8.21k stars 1.31k forks source link

Fix DatetimeInput so it respects html5 wrapper configuration #1830

Open jamezilla opened 6 months ago

jamezilla commented 6 months ago

Bug fix for #1739

I reorganized the tests a little bit. Tests which should generate html5 inputs were consolidated under DateTimeInputWithHtml5Test and tests which shouldn't generate html5 inputs were consolidated under DateTimeInputWithoutHtml5Test.

I also removed some unnecessary calls to swap_wrapper since the default wrapper supports optional use of the html5 component.