Skip to content

Navigation Block: Adding layers of sub menu items causes editing field to expand #30113

@annezazu

Description

@annezazu

Description

Adding submenus can leave you with many submenus being created very quickly due to the “capturing” of the nested block’s toolbar so that it’s always pinned to the topmost Nav block – https://d.pr/i/fk9pVL/4E9DHVpjCm

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

  1. Add a Navigaton Block
  2. Add a Link block
  3. Click “Add submenu” several times in rapid succession
  4. Try to view the submenu items that were created.
  5. See editor field expand :D Achievement unlocked!

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

  • WordPress version: 5.7
  • Gutenberg version: 10.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: MacOS
  • Browser: Chrome

Metadata

Metadata

Assignees

Labels

[Block] NavigationAffects the Navigation Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions