Skip to content
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: Submenu's Parent Page is not marked as Invalid when page is deleted #44760

Open
cuemarie opened this issue Oct 7, 2022 · 1 comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended

Comments

@cuemarie
Copy link

cuemarie commented Oct 7, 2022

Description

When a Navigation Block Submenu uses a Page for it's Parent menu item, and that page is deleted, the editor does not show (Invalid) next to the menu item, like it does for other menu items.

This happens with the Navigation Block in both Classic and FSE themes.

Step-by-step reproduction instructions

  1. Add a navigation block to a site, and build a submenu with the parent item as another page of the site.
  2. Publish the content
  3. Delete the page that's the parent of the submenu
  4. Refresh the editor where your navigation block is built, and the live site

Live site removes the submenu altogether, but the editor shows the same menu as before - without adding (Invalid) to the deleted page.

Screenshots, screen recording, code snippet

Screen.Capture.on.2022-10-06.at.17-34-34.mp4

By comparison, another page within a navigation block that is deleted shows (Invalid) added to the menu label:

Markup on 2022-10-06 at 17:45:11

Environment info

  • WP 6.0.2
  • Gutenberg 14.2.0

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

@stacimc
Copy link
Contributor

stacimc commented Nov 3, 2022

I was able to reproduce this in WP 6.0.3, Gutenberg 14.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants