File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 525
525
$removedInputs = $ ( collectNodes ( mutation . removedNodes ) ) . filter ( 'a[href], [tabindex], :input' ) ;
526
526
if ( $addedInputs . length > 0 || $removedInputs . length > 0 ) {
527
527
shouldRefreshInputs = true ;
528
- ignoreAutofocus = false ;
528
+ if ( $addedInputs . filter ( ':input' ) . length > 0 || $removedInputs . filter ( ':input' ) . length > 0 ) {
529
+ ignoreAutofocus = false ;
530
+ }
529
531
}
530
532
}
531
533
Original file line number Diff line number Diff line change 290
290
$removedInputs = $ ( collectNodes ( mutation . removedNodes ) ) . filter ( 'a[href], [tabindex], :input' ) ;
291
291
if ( $addedInputs . length > 0 || $removedInputs . length > 0 ) {
292
292
shouldRefreshInputs = true ;
293
- ignoreAutofocus = false ;
293
+ if ( $addedInputs . filter ( ':input' ) . length > 0 || $removedInputs . filter ( ':input' ) . length > 0 ) {
294
+ ignoreAutofocus = false ;
295
+ }
294
296
}
295
297
}
296
298
You can’t perform that action at this time.
0 commit comments