Skip to content

Commit

Permalink
fix(DropdownMenu): fix opening from keyboard (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluepuper authored Mar 14, 2024
1 parent d1c800f commit 9251714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useActionHandlers/useActionHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function createOnKeyDownHandler<T>(callback?: AnyFunction) {
callback &&
[KeyCode.ENTER, KeyCode.SPACEBAR, KeyCode.SPACEBAR_OLD].includes(event.key)
) {
event.preventDefault();
callback(event);
}
};
Expand Down

0 comments on commit 9251714

Please sign in to comment.