If pass the undefined option, then tippy will use this value instead of setting the default value
tippy('button', {
content: 'tooltip',
trigger: undefined
});
`Uncaught TypeError: Cannot read property 'split' of undefined`
CodePen link: https://codepen.io/makarov906/pen/oNbwErz
That's how object spreading works, { ...defaults, ...specified}, the undefined value takes over the default. How should it work?
I expect defaults options to be applied
Hmm yeah I guess.
Why has this been closed? I think this is a valid bug. I was just creating a wrapper component for this and had to manually remove all undefined props before passing them to tippy. I agree with @makarov906 that default values should be applied.
Most helpful comment
Hmm yeah I guess.