Skip to content

Commit

Permalink
fix(delegate): warnings in console with esm (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks authored Nov 10, 2021
1 parent cac8a12 commit dc1aed0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/addons/delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc1aed0

Please sign in to comment.