Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit

Permalink
fix(API): prevent scroll when using space to open dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Dec 16, 2021
1 parent 2d0870f commit 7aec423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/auro-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class AuroDropdown extends LitElement {
const showByKeyboard = (event) => {
const key = event.key.toLowerCase();
if (key === ' ' || key === 'enter') {
event.preventDefault();
handleShow();
}
};
Expand Down

0 comments on commit 7aec423

Please sign in to comment.