File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/definitions/behaviors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1349
1349
fieldErrors = [ ] ,
1350
1350
isDisabled = $field . filter ( ':not(:disabled)' ) . length === 0 ,
1351
1351
validationMessage = $field [ 0 ] . validationMessage ,
1352
+ noNativeValidation = field . noNativeValidation || settings . noNativeValidation || $field . filter ( '[formnovalidate],[novalidate]' ) . length > 0 || $module . filter ( '[novalidate]' ) . length > 0 ,
1352
1353
errorLimit
1353
1354
;
1354
1355
if ( ! field . identifier ) {
1355
1356
module . debug ( 'Using field name as identifier' , identifier ) ;
1356
1357
field . identifier = identifier ;
1357
1358
}
1358
- if ( validationMessage ) {
1359
+ if ( validationMessage && ! noNativeValidation ) {
1359
1360
module . debug ( 'Field is natively invalid' , identifier ) ;
1360
1361
fieldErrors . push ( validationMessage ) ;
1361
1362
fieldValid = false ;
1627
1628
errorFocus : true ,
1628
1629
dateHandling : 'date' , // 'date', 'input', 'formatter'
1629
1630
errorLimit : 0 ,
1631
+ noNativeValidation : false ,
1630
1632
1631
1633
onValid : function ( ) { } ,
1632
1634
onInvalid : function ( ) { } ,
You can’t perform that action at this time.
0 commit comments