Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 58a3323

Browse files
committed
docs(ngMaxlength): document what happens on negative/non-numeric values
1 parent 0dc74d2 commit 58a3323

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ng/directive/input.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var inputType = {
4141
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
4242
* minlength.
4343
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
44-
* maxlength.
44+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
4545
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
4646
* that contains the regular expression body that will be converted to a regular expression
4747
* as in the ngPattern directive.
@@ -589,7 +589,7 @@ var inputType = {
589589
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
590590
* minlength.
591591
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
592-
* maxlength.
592+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
593593
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
594594
* that contains the regular expression body that will be converted to a regular expression
595595
* as in the ngPattern directive.
@@ -676,7 +676,7 @@ var inputType = {
676676
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
677677
* minlength.
678678
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
679-
* maxlength.
679+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
680680
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
681681
* that contains the regular expression body that will be converted to a regular expression
682682
* as in the ngPattern directive.
@@ -764,7 +764,7 @@ var inputType = {
764764
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
765765
* minlength.
766766
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
767-
* maxlength.
767+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
768768
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
769769
* that contains the regular expression body that will be converted to a regular expression
770770
* as in the ngPattern directive.
@@ -1370,7 +1370,7 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
13701370
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
13711371
* minlength.
13721372
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
1373-
* maxlength.
1373+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
13741374
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
13751375
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
13761376
* patterns defined as scope expressions.
@@ -1402,7 +1402,7 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
14021402
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
14031403
* minlength.
14041404
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
1405-
* maxlength.
1405+
* maxlength. Setting maxlength to a negative or non-numeric value disables the check.
14061406
* @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the
14071407
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
14081408
* patterns defined as scope expressions.

0 commit comments

Comments
 (0)