Skip to content

Commit

Permalink
Try something
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Dec 9, 2020
1 parent f44bb25 commit a4a4988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compose/src/hooks/use-focus-outside/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function useFocusOutside( onFocusOutside ) {
// inside the wrapped component and therefore we cancel
// this blur event thereby leaving focus in place.
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus.
if ( window?.document?.hasFocus && ! document.hasFocus() ) {
if ( window?.document?.hasFocus && ! window.document.hasFocus() ) {
event.preventDefault();
return;
}
Expand Down

0 comments on commit a4a4988

Please sign in to comment.