File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ $.extend( $.validator, {
229
229
errorClass : "error" ,
230
230
validClass : "valid" ,
231
231
errorElement : "label" ,
232
+ focusCleanup : false ,
232
233
focusInvalid : true ,
233
234
errorContainer : $ ( [ ] ) ,
234
235
errorLabelContainer : $ ( [ ] ) ,
@@ -238,8 +239,8 @@ $.extend( $.validator, {
238
239
onfocusin : function ( element ) {
239
240
this . lastActive = element ;
240
241
241
- // hide error label and remove error class on focus if enabled
242
- if ( this . settings . focusCleanup && ! this . blockFocusCleanup ) {
242
+ // Hide error label and remove error class on focus if enabled
243
+ if ( this . settings . focusCleanup ) {
243
244
if ( this . settings . unhighlight ) {
244
245
this . settings . unhighlight . call ( this , element , this . settings . errorClass , this . settings . validClass ) ;
245
246
}
You can’t perform that action at this time.
0 commit comments