Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Mar 1, 2021
1 parent 2d9e46d commit cb4f2ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Dropdown.tsx
Expand Up @@ -267,6 +267,11 @@ function Dropdown({
return;
case 'Escape':
case 'Tab':
if (key === 'Escape') {
event.preventDefault();
event.stopPropagation();
}

onToggle(false, event);
break;
default:
Expand Down

0 comments on commit cb4f2ad

Please sign in to comment.