Skip to content

Commit

Permalink
Fix #1929: Dropdown ENTER key open panel
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 27, 2022
1 parent 27cf6c7 commit b6df680
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,10 @@ export const Dropdown = React.memo(React.forwardRef((props, ref) => {
onUpKey(event);
break;

//space
//space and enter
case 32:
overlayVisibleState ? hide() : show();

event.preventDefault();
break;

//enter
case 13:
hide();
overlayVisibleState ? hide() : show();
event.preventDefault();
break;

Expand Down

0 comments on commit b6df680

Please sign in to comment.