Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Disables the buttons for the navigation selector during transactions:
- 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 <677833+talldan@users.noreply.github.com>
  • Loading branch information
draganescu and talldan committed Sep 6, 2022
commit 9010e64a3c5f4a73a5012f6b5e59b0efc72c9dea
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ function NavigationMenuSelector( {
</>
),
isBusy: ! enableOptions,
disabled: ! enableOptions,
__experimentalIsFocusable: true,
onClick: () => {
setIsPressed( ! isPressed );
},
Expand Down