Skip to content

Commit

Permalink
Better code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstine committed May 3, 2024
1 parent d6b47ce commit 76851ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rich-text/src/to-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ export function applySelection( { startPath, endPath }, current ) {
// selection manipulations may shift focus, ensure that focus is restored to
// its previous state.
// Do not take focus if user is not in iFrame editing canvas.
//
// See: https://github.com/WordPress/gutenberg/issues/61315
if (
activeElement.closest( 'iframe' ) &&
activeElement !== ownerDocument.activeElement
Expand Down

0 comments on commit 76851ca

Please sign in to comment.