Akryum / Akryum/floating-vue

Bug: v-tooltip does not work when globally registering the plugin

Ouverte
#1,085 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
3.5k
Forks
341
Merge moyen
14 min
PR mergées (30 j)
8

Description

Hello, I'm following the [docs](https://floating-vue.starpad.dev/guide/installation) to register `floating-vue` globally. Like this

```
import FloatingVue from 'floating-vue';
import 'floating-vue/dist/style.css';

...

app = createApp(App);
app.use(FloatingVue, {
distance: 10,
themes: {
tooltip: {
delay: { show: 100, hide: 200 },
},
'org-switcher': {
$extend: 'dropdown',
triggers: ['click'],
popperTriggers: ['click'],
autoHide: true,
placement: 'bottom',
},
'actions-dropdown': {
$extend: 'dropdown',
triggers: ['click'],
popperTriggers: ['click'],
autoHide: true,
placement: 'bottom',
},
'checkbox-dropdown': {
$extend: 'dropdown',
triggers: ['click'],
popperTriggers: ['click'],
autoHide: true,
placement: 'bottom',
},
},
});

```
I checked `app._context.directives`, and tooltip is in the list.

However, when I use the directive on an HTML element, the tooltip does not appear, and there are no errors in the console.

`TEST TOOLTIP`

I'm on
```
"vite": "^7.0.6",
"vue": "^3.5.18"
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.