-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Show the placeholder again when moving from a valid menu to non-existing menu #36210
Conversation
Size Change: +4 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM 🚢
One thing @adamziel that I noticed while testing is that:
It is very confusing. |
Also tested that it doesn't break any other aspect of the block, like pattern insertion
Yeah, this is a missing feature. I think we need a 'Create new' option in the Select menu dropdown. I'll see if I can smash it out quickly. |
Description
Right now, the navigation block only displays the placeholder after it's been initially mounted. If the
navigationMenuId
is later updated to0
, the block is stuck in a "forever loading" state. This PR makes the block react to an empty menu and display the placeholder again.Test plan: