KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
726 stars 87 forks source link

Directive string support: Handle update case #214

Closed kkuegler closed 2 years ago

kkuegler commented 2 years ago

The tippy directive properly supports string values on first render. However, when the component is updated, there was no string handling and the value was assumed to be an object.

Now we apply the same handling for the update case, too.

It would otherwise fail with something like this:

Error: [tippy]: `0` is not a valid option
    validateOptions
    validateOptions
    set
    componentUpdated
    ...