From 02de5808876492dfbe54410bbd4835dc84621587 Mon Sep 17 00:00:00 2001 From: James N Date: Tue, 23 Feb 2021 12:02:13 +1100 Subject: [PATCH] fix(delegate): passive event listener warning (#908) --- src/addons/delegate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addons/delegate.ts b/src/addons/delegate.ts index 05bcbafb6..c71fca5d5 100644 --- a/src/addons/delegate.ts +++ b/src/addons/delegate.ts @@ -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'; @@ -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);