From e8eaeab62420d8f43d5dc3500409eb0c33baa1eb Mon Sep 17 00:00:00 2001 From: James Nelson Date: Wed, 10 Nov 2021 16:58:27 +1100 Subject: [PATCH] fix(delegate): warnings in console with esm --- src/addons/delegate.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/addons/delegate.ts b/src/addons/delegate.ts index e50aa700..b9a26873 100644 --- a/src/addons/delegate.ts +++ b/src/addons/delegate.ts @@ -39,7 +39,11 @@ function delegate( const nativeProps = removeProperties(props, ['target']); const parentProps = {...nativeProps, trigger: 'manual', touch: false}; - const childProps = {...defaultProps, ...nativeProps, showOnCreate: true}; + const childProps = { + touch: defaultProps.touch, + ...nativeProps, + showOnCreate: true, + }; const returnValue = tippy(targets, parentProps); const normalizedReturnValue = normalizeToArray(returnValue);