Skip to content

Commit 2434fd7

Browse files
Merge pull request #141 from angular/master
Update upstream
2 parents 8ccbb5a + e22c5d3 commit 2434fd7

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"license": "MIT",
44
"branchVersion": "^1.7.0",
55
"branchPattern": "1.7.*",
6-
"distTag": "latest",
6+
"distTag": "next",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/angular/angular.js.git"

src/ng/directive/input.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,11 @@ var inputType = {
670670
* error docs for more information and an example of how to convert your model if necessary.
671671
* </div>
672672
*
673-
* ## Issues with HTML5 constraint validation
673+
*
674+
*
675+
* @knownIssue
676+
*
677+
* ### HTML5 constraint validation and `allowInvalid`
674678
*
675679
* In browsers that follow the
676680
* [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
@@ -679,6 +683,17 @@ var inputType = {
679683
* which means the view / model values in `ngModel` and subsequently the scope value
680684
* will also be an empty string.
681685
*
686+
* @knownIssue
687+
*
688+
* ### Large numbers and `step` validation
689+
*
690+
* The `step` validation will not work correctly for very large numbers (e.g. 9999999999) due to
691+
* Javascript's arithmetic limitations. If you need to handle large numbers, purpose-built
692+
* libraries (e.g. https://github.com/MikeMcl/big.js/), can be included into AngularJS by
693+
* {@link guide/forms#modifying-built-in-validators overwriting the validators}
694+
* for `number` and / or `step`, or by {@link guide/forms#custom-validation applying custom validators}
695+
* to an `input[text]` element. The source for `input[number]` type can be used as a starting
696+
* point for both implementations.
682697
*
683698
* @param {string} ngModel Assignable AngularJS expression to data-bind to.
684699
* @param {string=} name Property name of the form under which the control is published.

0 commit comments

Comments
 (0)