File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 525525 $removedInputs = $ ( collectNodes ( mutation . removedNodes ) ) . filter ( 'a[href], [tabindex], :input' ) ;
526526 if ( $addedInputs . length > 0 || $removedInputs . length > 0 ) {
527527 shouldRefreshInputs = true ;
528- ignoreAutofocus = false ;
528+ if ( $addedInputs . filter ( ':input' ) . length > 0 || $removedInputs . filter ( ':input' ) . length > 0 ) {
529+ ignoreAutofocus = false ;
530+ }
529531 }
530532 }
531533
Original file line number Diff line number Diff line change 290290 $removedInputs = $ ( collectNodes ( mutation . removedNodes ) ) . filter ( 'a[href], [tabindex], :input' ) ;
291291 if ( $addedInputs . length > 0 || $removedInputs . length > 0 ) {
292292 shouldRefreshInputs = true ;
293- ignoreAutofocus = false ;
293+ if ( $addedInputs . filter ( ':input' ) . length > 0 || $removedInputs . filter ( ':input' ) . length > 0 ) {
294+ ignoreAutofocus = false ;
295+ }
294296 }
295297 }
296298
You can’t perform that action at this time.
0 commit comments