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

protip not hide in random cases owner element hides itself #42

Open
lbrevity opened this issue Mar 28, 2019 · 5 comments
Open

protip not hide in random cases owner element hides itself #42

lbrevity opened this issue Mar 28, 2019 · 5 comments
Assignees
Labels

Comments

@lbrevity
Copy link

lbrevity commented Mar 28, 2019

Hello,
I have following in my code

<div class="con exists" id="Section1">
    <input id="course_slide" maxlength="250" type="text" name="slide1" />
    <a class="ic-btn add protip" data-pt-position="top"  data-pt-scheme="aqua"  data-pt-title="Add"  id="addLabel_slide" onclick="add();">
        <span class="glyphicon glyphicon-ok"></span>
    </a>
</div>

It displays proper on hover of element, But after one ajax call inside add() function , I remove this div using jquery but it still displays tooltip. Note : If i click f12 then it hides.

@wintercounter
Copy link
Owner

Can you show me the callback of the Ajax call please. You can also try data-pt-target="true" which will place the tooltip inside you DOM element thus removing both. But yes, by default it should get removed.

@lbrevity
Copy link
Author

Hi @wintercounter
I'm just doing
$('#Section1').remove(); inside my ajax call response

@lbrevity
Copy link
Author

And Yes @wintercounter ,
As per your suggestion I tried data-pt-target="true", but it's not showing even.

@wintercounter
Copy link
Owner

I could reproduce the issue. https://jsfiddle.net/9kt3hfpj/1/
It probably has been introduced with a recent change as wiyh older versions it's working.
You can you $('#Section1').protipHideInside().remove() as a workaround until it's fixed.

@lbrevity
Copy link
Author

@wintercounter
Oh thanks!! it works as of now!! Saved my day 👍

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

2 participants