-
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
List View - Stop child item selecting a parent which is already selected #45860
List View - Stop child item selecting a parent which is already selected #45860
Conversation
|
Some overlap/relatedness to #45794 |
Size Change: +15 B (0%) Total Size: 1.3 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.
So I ran into this bug when I was trying to use the React dev tools component picker and thought it was related to that. So glad that it's not related to that and is now fixed!
What?
Fixes a bug observed in the Offcanvas Navigation Editor to stop allowing list view child items' settings menu providing an option to select a parent block if that parent is already selected.
This was manifesting as the popover disappearing when attempting to mouseover the option. See screenshots.
Why?
Rendering a List View within a block is a new pattern. This has exposed the above bug whereby the menu says
Select parent block
but the parent block is already selected. That's not something we wish to expose.How?
This checks whether the currently selected block matches the parent block ID and if it does then it doesn't show the Select Parent option.
Testing Instructions
Also check that the "Select parent" feature still works for the main list view for normal blocks.
Screenshots or screencast
Before
Screen.Capture.on.2022-11-17.at.15-57-08.mp4
After