question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using the <tippy> component doesn't inherit default options set on Vue.use

See original GitHub issue

If I setup default options like this:

Vue.use(VueTippy, {
  arrow: true,
  theme: 'light',
})

And use the tippy like this:

      <tippy>
        <template v-slot:trigger>
          <div>my trigger</div>
        </template>
        Tooltip here
      </tippy>

The tooltip doesn’t have arrow and is black. I need to declare it again like this: <tippy :arrow="true" theme="light">

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KABBOUCHIcommented, Oct 21, 2020

@UteV because its already registered for the browser version

you can use:

VueTippy.tippy.setDefaults({ .... }}

https://codepen.io/KABBOUCHI/pen/WNxoNLx

1reaction
melankecommented, Jun 9, 2020

Well, this is strange, maybe something else is causing the bug. I will investigate to get more information on this.

Thank you anyway, I will reach you back soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Props | Vue.js
The prop is used to pass in an initial value; the child component wants to use it as a local data property afterwards....
Read more >
Vue JS Non prop attributes and Disabling Attribute Inheritance
I understand how props works, it is passing data from parent component to child component. Parent.vue <template> <div id="app"> <Child ...
Read more >
All Options | VueTippy
Below is a table of all the options you can supply. ... Along with a string or element, you can use a function...
Read more >
Smart Styling Of Web Components - JavaScript in Plain English
One of the killer features of Web Components is true encapsulation of styling through Shadow DOM. This means that the internal CSS of...
Read more >
useFetch - VueUse
Use explicit import if you want to use the function from VueUse. ... set the method using the options // Request will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found