Skip to content

Navigation: Fixing an unsynced link can keep popover permanently visible #73171

@jeryj

Description

@jeryj

Description

There is a focus loss when fixing an unsynced link in the navigation link block. After fixing the link, focus is lost to the body and the focus does not return to the popover. This disconnect means that the popover's onFocusOutside gets skipped and the popover remains open even after other links open their popover.

Likely caused by #73142 I tried reverting #73142 and the bug still happens. It's due to the entity binding system.

Step-by-step reproduction instructions

  • Open the popover for a navigation item by selecting it and then pressing command + k or using the toolbar.
  • With the popover still open, click another navigation item
  • The popover will remain open

Screenshots, screen recording, code snippet

Screen.Recording.2025-11-11.at.12.29.53.PM.mov

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

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

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions