We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f695ee commit df44a18Copy full SHA for df44a18
src/use-dropdown-menu.ts
@@ -70,7 +70,7 @@ export default function useDropdownMenu(itemCount: number) {
70
const { key } = e;
71
72
// Prevent default browser behavior except in cases where maintaining the natural tab order is desired
73
- if (!(key === 'Tab' || key === 'Shift' || key === 'Enter')) {
+ if (key !== 'Tab' && key !== 'Shift' && key !== 'Enter') {
74
e.preventDefault();
75
}
76
0 commit comments