Skip to content

Commit 0c72d15

Browse files
committed
decimals was removed if prefilled value
1 parent 9d5089c commit 0c72d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/number.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ angular.module('inputTypes')
131131
if (attrs.ngModel) {
132132
var modelValue = $parse(attrs.ngModel)(scope);
133133
if(modelValue) {
134-
previousValueLength = setViewValue(elm, plainNumber(modelValue), previousValueLength, scope);
134+
previousValueLength = setViewValue(elm, plainNumber(modelValue, attrDecimals), previousValueLength, scope);
135135
triggerInputEvent($sniffer, elm);
136136
}
137137
}

0 commit comments

Comments
 (0)