From 6324486d70edc01fb28f61f0a68a6a490378d602 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 12 Apr 2015 08:26:57 -0700 Subject: [PATCH] feat(timepicker): always pad minutes - Always pad minutes as a UX improvement - Make suggested fix as per CR Fixes #1598 Relates to #2639 Closes #3533 --- src/timepicker/timepicker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timepicker/timepicker.js b/src/timepicker/timepicker.js index 9f43173c6e..367d69659d 100644 --- a/src/timepicker/timepicker.js +++ b/src/timepicker/timepicker.js @@ -247,7 +247,9 @@ angular.module('ui.bootstrap.timepicker', []) } $scope.hours = keyboardChange === 'h' ? hours : pad(hours); - $scope.minutes = keyboardChange === 'm' ? minutes : pad(minutes); + if (keyboardChange !== 'm') { + $scope.minutes = pad(minutes); + } $scope.meridian = selected.getHours() < 12 ? meridians[0] : meridians[1]; }