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

hide/destroy not hiding or destroying #33

Closed
cre8value opened this issue May 31, 2013 · 1 comment
Closed

hide/destroy not hiding or destroying #33

cre8value opened this issue May 31, 2013 · 1 comment

Comments

@cre8value
Copy link

I am initializing tooltipster on elements like so:

            // init tooltipster on class 'tooltip'
            $('.tooltip').tooltipster({
                delay:500,
                interactive:true
            });

When time comes to disable tooltipster on select elements, I try to 'destroy' or 'hide' tooltipster from those elements:

            // remove tooltipster from class 'myClass'
            $('.myClass').tooltipster('destroy');

But the tooltips don't get destoryed or hidden. I even tried removing the title attribute from the element, confirmed the title was gone from the element by using the Dev Tools built into Chrome and IE, but the tooltipster keeps firing tooltips on those elements.

What am I doing wrong? How do I remove a tooltip from an element?

@calebjacob
Copy link
Owner

I've confirmed that these methods are working. Make sure you're using the methods correctly.

<div class="tooltip myClass" title="My tooltip content"></div>
$('.tooltip').tooltipster({
    delay:500,
    interactive:true
});

// later on when you want to destroy it. This will hide the tooltip first if currently open
$('.myClass').tooltipster('destroy');

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

No branches or pull requests

2 participants