Skip to content

Commit

Permalink
Update packages/compose/src/hooks/use-focusable-iframe/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Hao <[email protected]>
  • Loading branch information
ellatrix and kevin940726 authored Nov 6, 2020
1 parent ebcc095 commit e971909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compose/src/hooks/use-focusable-iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function useFocusableIframe( ref ) {
* then received focus, and dispatches a focus event.
*/
function checkFocus() {
if ( ownerDocument.activeElement !== ref.current ) {
if ( ownerDocument.activeElement === ref.current ) {
ref.current.dispatchEvent(
new FocusEvent( 'focus', { bubbles: true } )
);
Expand Down

0 comments on commit e971909

Please sign in to comment.