Skip to content

Commit

Permalink
silence chrome warning for non-passive 'touchstart' event.
Browse files Browse the repository at this point in the history
  • Loading branch information
xomaczar authored Jul 3, 2024
1 parent 3f400ec commit 6fdd985
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ 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 6fdd985

Please sign in to comment.