Skip to content

Commit bee36ea

Browse files
committed
Only fire blur within the same document.
1 parent af58caf commit bee36ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/_enqueues/admin/user-profile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@
391391
} );
392392

393393
$input.on( 'blur', function() {
394+
if ( ! document.hasFocus() ) {
395+
return;
396+
}
394397
capsLockOn = false;
395398
$capsWarning.hide();
396399
} );

0 commit comments

Comments
 (0)