When entering this type in angular (1.6.1), the value is undefined
for values ββfrom 9.03
to 9.05
inclusive. The problem is reproduced with other values, among others 9.62
, 9.63
, 17.31
.
<input type="number" step="0.01" data-ng-model="$ctrl.numericValue" />
This fiddle reproduces the problem. Just click on the numeric input.
Tested on firefox and chromium under linux mint 18.
It seems to be associated with an attribute "step"
. If it is set to "0.001"
, there is no problem. But I am threatening money in this application, so 2 decimal numbers are required.
Note: if the value is initially set to 9.03
through data-numeric-value
, it is not undefined
.
Any workaround for this error?
change
updated fiddle to show whit behavior step="0.01"
compared tostep="0.001"
edit 2
I did plunkr when filling out the error report to find out that the error was fixed in the snapshot version, because it is 1.6.2. But this version is not available for download through the angularjs site at the moment.
source
share