Giter Club home page Giter Club logo

Comments (6)

KABBOUCHI avatar KABBOUCHI commented on May 18, 2024

When you use reactive option (reserve event listeners), you only can use 1 html/component element per tippy instance

image

Can you setup a small demo so i can fix it or modify your codes? (https://codesandbox.io/s/vue or github repo)

from vue-tippy.

danchristian avatar danchristian commented on May 18, 2024

I have created a demo here https://codesandbox.io/s/z6my0n2p13 and have realised it is the @click.stop that is causing the behaviour. The button to open the tooltip is within an <li> which itself is selectable, that is why I am using @click.stop on the tooltip button, othwerwise it selects the parent <li>.

I guess I could make the tooltips react on hover, rather than click as a tempoary workaround. Unless there is another way?

from vue-tippy.

KABBOUCHI avatar KABBOUCHI commented on May 18, 2024

u can add @mouseleave="($event) => $event.target._tippy.hide()"

https://codesandbox.io/s/yyx92969

from vue-tippy.

danchristian avatar danchristian commented on May 18, 2024

That then means you can't interact with the tooltip as when you leave the button it closes it.

from vue-tippy.

KABBOUCHI avatar KABBOUCHI commented on May 18, 2024

maybe you can manage tippy instances like this https://codesandbox.io/s/82kz5m06k9 ?

from vue-tippy.

danchristian avatar danchristian commented on May 18, 2024

Thank you for your help and apologies for not replying. I gave the sample code a go but in the end have stuck with a hover interaction instead of a click to keep things simple.

from vue-tippy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.