Site editor: The preview frame can have edits triggered by keyboard #69154
Labels
[Package] Block editor
/packages/block-editor
[Type] Bug
An existing feature does not function as intended
Description
In the Site editor tabbing through the interface can focus the site preview and while focused the keyboard can be used to “Select All” and the the block toolbar is accessible and edits can be made. There may be other ways keyboard use can trigger edits too.
The cause of this is the writing flow hook is active so the when the
body
of the iframe has focus there is the potential to trigger its behaviors.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
site-editor-preview-unintended-keyboard-editable.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: