File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments