Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(timepicker): always pad minutes #3533

Closed
wants to merge 1 commit into from
Closed

Conversation

wesleycho
Copy link
Contributor

  • Always pad minutes as a UX improvement

Plunker

Fixes #1598
Related to #2639

@wesleycho wesleycho added this to the 0.13.0 milestone Apr 12, 2015
@chrisirhc
Copy link
Contributor

I agree with this change. However, this creates an issue where I can't type "10:50" as the input now. Two digit minutes can't be typed into the display.

I think instead, the fix/feature should be something along:

    if (keyboardChange !== 'm') {
      $scope.minutes = pad(minutes);
    }

- Always pad minutes as a UX improvement

- Make suggested fix as per CR
@wesleycho
Copy link
Contributor Author

Good catch - made change as suggested, works for both use cases.

Updated Plunker with new build.

@wesleycho wesleycho closed this in 6324486 Apr 14, 2015
@chrisirhc chrisirhc mentioned this pull request Apr 14, 2015
@chrisirhc chrisirhc deleted the feat/pad-minutes branch April 14, 2015 06:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timepicker - leading zeros should not be deleted in the minutes field
3 participants