Skip to content

Commit 3905407

Browse files
authored
Merge pull request #60 from sparksuite/simpler-logic
Simpler boolean logic in conditional
2 parents e5a777f + 31d6003 commit 3905407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use-dropdown-menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function useDropdownMenu(itemCount: number) {
7575
if (isKeyboardEvent(e)) {
7676
const { key } = e;
7777

78-
if (!(key === 'Tab' || key === 'Shift')) {
78+
if (key !== 'Tab' && key !== 'Shift') {
7979
e.preventDefault();
8080
}
8181

0 commit comments

Comments
 (0)