Skip to content

Navigation Block: fix link UI popover only opens if there's one navigation block in the page #47829

@MaggieCabrera

Description

@MaggieCabrera

Description

While fixing #47828 we uncovered a new bug in the case where more than one navigation block is present on the page.

Step-by-step reproduction instructions

Insert a navigation block with custom links.
Click the inserter to add a new custom link, it should trigger the popover to edit the link.
Insert a new navigation block just below.
Insert a new custom link to it. The popover should open, but it doesn't.

Screenshots, screen recording, code snippet

Screen Capture on 2023-02-07 at 12-21-54

Environment info

No response

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

Metadata

Metadata

Assignees

Labels

[Block] NavigationAffects the Navigation Block[Block] Navigation LinkAffects the Navigation Link Block[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions