-
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
Navigation block: requires double clicking to select/edit when using page list #45083
Comments
Tested and confirmed this is a bug on RC2. You cannot select the Page List at all without double click. |
I can confirm that turning off |
This comment was marked as outdated.
This comment was marked as outdated.
Ok here I am testing on Gutenberg
Why is this happening? What changes? Diving deeper.... Screen.Capture.on.2022-10-19.at.12-08-02.mp4 |
I can observe the same behaviour using the following markup:
Therefore I don't think this is specific to the Navigation block but rather the Page List block. |
Narrowing this down some more. It seems that the Page List block as an inner block is not receiving the This is causing the However, some changes in the editor seem to "trigger" the focus to work as you'd expect for the Page List. One example is simply going in and then out of Screen.Capture.on.2022-10-19.at.15-58-57.mp4My current thinking is that something is blocking |
Going deeper. The Before toggling Code Editor modeNotice that the only event handler is that on the parent Group block. After toggling Code Editor mode |
I now believe the following
Therefore I believe the issue may lie in EOD for me here but can pick up again tomorrow. |
Amazing job continuing to sleuth. Thank you. |
I think I now have a fix at #45143. Full explanation in that PR. |
Description
The "click to edit" overlay #35079 seems to be broken causing one to have to double click in quick succession in order to edit a navigation block. This seems specific to a post theme switch from a classic theme when the page list fallback is in place as I can't replicate when a "regular" navigation block is in place. cc @getdave
Step-by-step reproduction instructions
If you need a test site to make it easier, you can spin up a site with https://app.instawp.io/launch?t=fse-call-for-testing-17 from the last call for testing for the FSE Outreach Program. This will give a classic site. Uninstall Gutenberg, update to 6.1 RC2 via beta tester, then switch to TT3.
Screenshots, screen recording, code snippet
Here's a video showing the problem just after switching from a classic to block theme and needing to convert the page list links to blocks:
click.to.edit.needing.double.click.mov
I can't replicate after converting to links:
Uploading click to edit post conversion.mov…
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: