Skip to content

Commit

Permalink
Toggle if it is open, to avoid multiple selectors being open.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfra committed Dec 10, 2024
1 parent e273ad1 commit 1dcb99e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ function ColorPanelDropdown( {
icon={ resetIcon }
onClick={ () => {
resetValue();
if ( isOpen ) {
onToggle();
}
// Return focus to parent button
colorGradientDropdownButtonRef.current?.focus();
} }
Expand Down

0 comments on commit 1dcb99e

Please sign in to comment.