Skip to content

Commit

Permalink
Prevent focus trap in Legacy Widget block’s preview iframe (#33614)
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman authored Sep 7, 2021
1 parent bd8da40 commit d1427be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/widgets/src/blocks/legacy-widget/edit/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default function Preview( { idBase, instance, isVisible } ) {
<iframe
ref={ ref }
className="wp-block-legacy-widget__edit-preview-iframe"
tabIndex="-1"
title={ __( 'Legacy Widget Preview' ) }
srcDoc={ srcDoc }
onLoad={ ( event ) => {
Expand Down

0 comments on commit d1427be

Please sign in to comment.