Skip to content

Commit

Permalink
fix(delegate): passive event listener warning (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Feb 23, 2021
1 parent f98615b commit 02de580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/addons/delegate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import tippy from '..';
import {TOUCH_OPTIONS} from '../constants';
import {defaultProps} from '../props';
import {Instance, Props, Targets} from '../types';
import {ListenerObject} from '../types-internal';
Expand Down Expand Up @@ -99,7 +100,7 @@ function delegate(
function addEventListeners(instance: Instance): void {
const {reference} = instance;

on(reference, 'touchstart', onTrigger);
on(reference, 'touchstart', onTrigger, TOUCH_OPTIONS);
on(reference, 'mouseover', onTrigger);
on(reference, 'focusin', onTrigger);
on(reference, 'click', onTrigger);
Expand Down

0 comments on commit 02de580

Please sign in to comment.