Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-tooltip is stuck if mouse moves through it #851

Closed
enodr opened this issue Apr 6, 2022 · 7 comments
Closed

v-tooltip is stuck if mouse moves through it #851

enodr opened this issue Apr 6, 2022 · 7 comments
Labels

Comments

@enodr
Copy link

enodr commented Apr 6, 2022

Hi,

I have a strange behavior with v-tooltips being stuck (will not disappear) but only when the mouse moves over the content of the tooltip. It there a configuration to avoid this?

Example: tooltip appears when hovering the icon and is stuck if I move the mouse on the right passing through the tooltip content (my mouse pointer being on the right of the Kibana tooltip now)

image

Thanks

@Akryum
Copy link
Owner

Akryum commented Apr 6, 2022

Try popperHideTriggers: ['hover'] (docs)

@enodr
Copy link
Author

enodr commented Apr 6, 2022

Thanks for the tip.

It does fix the issue, even though I don't understand why the problem doesn't exist in the samples I saw. Anyway in main.js I have set this line as a solution:

FloatingVue.options.popperHideTriggers = ['hover'];

@Zedicius
Copy link

Zedicius commented Apr 7, 2022

I'm having the same issue;

image

Code:
image

@Zedicius
Copy link

Zedicius commented Apr 7, 2022

Welp, I fixed it by using the component tooltip instead of the directive so I could use the hide() function on mouseLeave. Too bad this makes the directives almost useless though.

@Akryum
Copy link
Owner

Akryum commented Apr 7, 2022

@enodr You can do FloatingVue.options.themes.tooltip.popperHideTriggers = ['hover'] to only apply to tooltips

@Akryum
Copy link
Owner

Akryum commented Apr 7, 2022

@Zedicius see my comment above to apply the workaround to all tooltips.
You can also use popperHideTriggers in you custom theme config.

@Akryum
Copy link
Owner

Akryum commented Apr 8, 2022

You don't need the workaround as of 1.0.0-beta.16 and 2.0.0-beta.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants