-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: master, master-deprecated
-
Fix Version/s: master, master-deprecated, 3.0.x, 3.1.x
-
Component/s: Other
-
Labels:None
-
Git Pull Request:
If a user types an hour into an input generated by <liferay-ui:input-time>, without specifying the minutes, the input will insert the current minutes into the hour.
Steps to reproduce
- go to the aui-timepicker demo
- Click in first field under "Input Text"
- Delete the value
- Observe the current hour and minutes (that is, look at the clock of your machine)
- Type "7 AM" into it
- Click out of the input field
- Click back into the input field
Expected results:
The content would be replaced by "07:00 AM"
Actual results
The content is replaced by "07:<XY> AM", where "<XY>" are the current minutes.
If the time observed at step #4 is, let us say, 3:47 PM, then the value displayed in the input will be "07:47 AM"
- relates
-
LPS-45294 When it is not given, <liferay-ui:input-time> uses the current minutes instead of zero
- Closed