From 76851ca1dd07eabe5aba30c1912e29190d26e60f Mon Sep 17 00:00:00 2001 From: Alex Stine Date: Fri, 3 May 2024 17:30:57 -0500 Subject: [PATCH] Better code comment. --- packages/rich-text/src/to-dom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/rich-text/src/to-dom.js b/packages/rich-text/src/to-dom.js index e354cdb8c8f39d..d12fa93c865799 100644 --- a/packages/rich-text/src/to-dom.js +++ b/packages/rich-text/src/to-dom.js @@ -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