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

Commit 405dab6

Browse files
Alexandre DavidWesley Cho
Alexandre David
authored and
Wesley Cho
committed
fix(timepicker): Stringify pad return when value >= 10
In some cases, the increment function becomes invalid because the minutes are invalid. This change ensures that the value returned is a string
1 parent f7b4428 commit 405dab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/timepicker/timepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ angular.module('ui.bootstrap.timepicker', [])
103103
}
104104

105105
function pad( value ) {
106-
return ( angular.isDefined(value) && value.toString().length < 2 ) ? '0' + value : value;
106+
return ( angular.isDefined(value) && value.toString().length < 2 ) ? '0' + value : value.toString();
107107
}
108108

109109
// Respond on mousewheel spin

0 commit comments

Comments
 (0)