Coder Social home page Coder Social logo

When a tooltipped object is deleted while the tooltip is shown, the tooltip never disappears (as there will be no mouseout event) about tipsy HOT 3 CLOSED

jaz303 avatar jaz303 commented on June 12, 2024
When a tooltipped object is deleted while the tooltip is shown, the tooltip never disappears (as there will be no mouseout event)

from tipsy.

Comments (3)

jaz303 avatar jaz303 commented on June 12, 2024

I've added a validate() method to the Tipsy object, which you can call by doing $('#element-to-be-deleted').tipsy('validate') - this will remove the tooltip if the tooltipped object is no longer in the DOM. I think this is the best that can be done without the ability to observe the DOM for changes.

from tipsy.

jaz303 avatar jaz303 commented on June 12, 2024

added validate() method for removing tipsy when tooltipped element is no longer in the DOM (closed by 1026548)

from tipsy.

gkostov avatar gkostov commented on June 12, 2024

How is this method called? I was just going to fork the project and add the same code triggered by a timer while the tip is showing. I accidentally noticed this little function in the prototype but still I do not know if I can rely on it to automatically hide obsolete Tipsy objects. Can you please advise? Thanks

from tipsy.

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.