-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor crash from block deselection in “Zoom Out” mode #63456
Comments
I was not able to reproduce this issue, but it works differently in the post editor and the site editor, and I discovered some issues. Maybe this is because my machine is running Windows OS 🤔 Post Editor
post-editor.mp4Site Editor
site-editor.mp4 |
Thanks for testing this Aki. I appreciate the detailed report. I had only tested in the Site editor. I just tested again by inserting the pattern by clicking instead of dragging and could still reproduce the crash. It seems a key thing to reproduce is editing a page instead of a template. I quickly tested on the blog home template and it didn’t crash but it did take two clicks for the undo to work. I’ll add that it’s page specific in the description and instructions. In the Post editor I also couldn’t reproduce the crash even on a page. It did take two clicks for the undo to work though. So it seems the extra undo steps required varies by platform. |
I’ve updated the title and description (with new screen recording) due to realizing that the crash also happens from simply deselecting a block while zoomed out. Also now there’s #63642 to fix this but I guess someone needs to reproduce it first 😃. |
Description
While zoomed out, deselecting a block crashes the editor. I first happened across this by undoing a pattern insertion. Now I found that just clicking somewhere that doesn’t select a new block but does deselect the currently selected one will crash it too.
Here’s the error from the crash boundary:
Step-by-step reproduction instructions
Via block deselection
Via Undo
Screenshots, screen recording, code snippet
Via block deselection
zoom-out-deselect-crash.mp4
Via Undo
zoom-out-undo-crash.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: