-
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
Better handling of loading states for navigation selector #43904
Conversation
- disables the button of the dropdown - disables the button to create new menu - enables focus preservation on disabled buttons - handles multiple clicks Co-authored-by: Daniel Richards <[email protected]>
Size Change: +191 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
It seems that is still clickable 😢 I'm using slow 3G. Screen.Recording.2022-09-06.at.15.14.43.mov |
@draganescu It looks like you can remove gutenberg/packages/block-library/src/navigation/edit/navigation-menu-selector.js Lines 143 to 155 in ac872b8
Though I personally find it a little confusing the way edit: Tested the PR and it works well for me. 👍 |
Co-authored-by: Daniel Richards <[email protected]>
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.
LGTM!
Closes #43901
What?
Dropdown
toggleWhy?
In #42987 the control to switch the menu used by a Navigation block only shows busy UI but it remains clickable. This
How?
Implementing both
isBusy
anddisabled
but with the addition of__experimentalIsFocusable
.Testing Instructions