Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1193

When it is not given, aui-timepicker uses the current minutes instead of zero

    Details

    • 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

      Description

      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

      1. go to the aui-timepicker demo
      2. Click in first field under "Input Text"
      3. Delete the value
      4. Observe the current hour and minutes (that is, look at the clock of your machine)
      5. Type "7 AM" into it
      6. Click out of the input field
      7. 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"

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 11 weeks ago

                  Packages

                  Version Package
                  master
                  master-deprecated
                  3.0.x
                  3.1.x