Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow a
value
formatted as HH:MM
for time_field
#46678 introduced a regression, if you do the following: ```ruby = time_field(model, attr, value: "01:45") ``` Previously it would render an input with `value="01:45"`, since #46678 it renders a value with seconds (`value="01:45:00.000"`). This is a regression from Rails 7. See #41728 for why you might want the value to be rendered without seconds. Co-authored-by: jonathanhefner <jonathan@hefner.pro>
- Loading branch information
1 parent
a9506eb
commit 2d89108
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters