-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Adding layers of sub menu items causes editing field to expand #30113
Comments
This is a wild one! #21691 will mitigate this one a little bit, as submenus will be limited to a depth of 5. The video goes by a bit fast, but what happens, step by step, is actually this:
It seems like there's also an overlap into an issue that @gwwar has been looking into: what is the default block to insert? Right now it's making an educated guess at a "Link", but it shouldn't, because you might as well want to insert a "Page Link". That said, the solution explored to that will still insert a placeholder block — just an even less defined generic block placeholder that doesn't yet know it's a menu item. I suppose that won't solve the incessant-clicking issue though, as it will still insert a block, focus it, and allow you to insert a deeper nesting level. In the end that means there aren't that many good solutions for us to this one, as the button does what it's supposed to do. Short of throttling the button so you can't click it that fast, it seems like #21691 will need to be our solution. |
Ah ha! Thank you for connecting the dots here. I wonder if this issue should remain open in light of the one you linked to? In my mind, the original issue covers the problem described here. |
I realized in testing this ticket that there's an adjacent issue, which I thought had been fixed by #29869 but it appears it hasn't. Observe this GIF: Notice how for most of the GIF the submenu being created stays open, but towards the end it disappears. The fact that it disappears is disruptive and a bug. Right now the submenus are shown if the navigation block, or any child, is selected ( |
Actually scratch that, I might be able to fix this one. |
Fix here: #30169 |
Sorry, missed the ping. Looking at the video, I though it might be the page scrolling across that caused one of the clicks to miss and instead click the editor canvas. But sounds like you found another root cause. |
I did. 30169 should address this one. |
Description
Tied to this, after adding a bunch of submenus, if you try to view them all it ends up extending the actual editing field. This is obviously an edge case!
Feel free to update the title to something a bit more descriptive as I struggled to name this appropriately! This was found as part of the third call for testing for the FSE Outreach Program.
Step-by-step reproduction instructions
Expected behaviour
Expect the add link to perhaps cascade down or somehow adapt to the overflow.
Actual behaviour
The add new link prompts expand the size of the editing field.
Screenshots or screen recording (optional)
fun.bug.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: