Skip to content

Commit 0413f98

Browse files
author
shankarThiyagaraajan
committed
- issues on length restriction, minimized.
1 parent b132cd8 commit 0413f98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/multi_formValidator.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class jsValidator {
196196
// Apply filter for Email elements.
197197
if (activeElem.type == 'email') new jsFilter().email(activeElem);
198198
// Apply filter for Numeric elements.
199-
if (activeElem.min || activeElem.max || activeElem.getAttribute('data-maxlength') || activeElem.minLength || activeElem.maxLength) new jsFilter().limit(activeElem);
199+
if ('' !== activeElem.min || '' !== activeElem.max || activeElem.getAttribute('data-maxlength') || -1 !== activeElem.maxLength) new jsFilter().limit(activeElem);
200200
// Apply filter File elements.
201201
if (activeElem.type == 'file') new jsFilter().file(activeElem);
202202
// Apply filter with string, alphaNumeric and pregMatch.

src/js/multi_formValidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function jsValidator() {
187187
// Apply filter for Email elements.
188188
if (activeElem.type == 'email') new jsFilter().email(activeElem);
189189
// Apply filter for Numeric elements.
190-
if (activeElem.min || activeElem.max || activeElem.getAttribute('data-maxlength') || activeElem.minLength || activeElem.maxLength) new jsFilter().limit(activeElem);
190+
if ('' !== activeElem.min || '' !== activeElem.max || activeElem.getAttribute('data-maxlength') || -1 !== activeElem.maxLength) new jsFilter().limit(activeElem);
191191
// Apply filter File elements.
192192
if (activeElem.type == 'file') new jsFilter().file(activeElem);
193193
// Apply filter with string, alphaNumeric and pregMatch.

0 commit comments

Comments
 (0)