Skip to content

Commit

Permalink
silence chrome warning for non-passive 'touchstart' event. (#930)
Browse files Browse the repository at this point in the history
* silence chrome warning for non-passive 'touchstart' event.

* fix: lint issues
  • Loading branch information
xomaczar authored Jul 4, 2024
1 parent 3f400ec commit 39b4a0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember-basic-dropdown/src/modifiers/basic-dropdown-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export default class DropdownTriggerModifier extends Modifier<Signature> {
element.addEventListener('click', this.handleMouseEvent);
element.addEventListener('mousedown', this.handleMouseEvent);
element.addEventListener('keydown', this.handleKeyDown);
element.addEventListener('touchstart', this.handleTouchStart);
element.addEventListener('touchstart', this.handleTouchStart, {
passive: false,
});
element.addEventListener('touchend', this.handleTouchEnd);
}

Expand Down

0 comments on commit 39b4a0e

Please sign in to comment.