Skip to content

Commit

Permalink
πŸ› Prevent default on button click event
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcnamara-eng committed Oct 5, 2021
1 parent 72df387 commit 10483a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/components/listbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default class ListboxComponent extends Component {
@action
handleButtonClick(e) {
if (e.button !== 0) return;
e.preventDefault();
this.activateBehaviour = ACTIVATE_NONE;
this.isOpen = !this.isOpen;
}
Expand Down

0 comments on commit 10483a6

Please sign in to comment.