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

Tooltip disappears when clicking a <select> element inside #39

Closed
dhardtke opened this issue Jul 5, 2013 · 3 comments
Closed

Tooltip disappears when clicking a <select> element inside #39

dhardtke opened this issue Jul 5, 2013 · 3 comments

Comments

@dhardtke
Copy link

dhardtke commented Jul 5, 2013

Hey guy,

I am using tooltipster like this:

var content = $("#game_tooltip_template").detach().html();
$(".game").tooltipster({
    functionReady: function(origin, tooltip) {
        tooltip.find(".profile_select").select2({
            minimumResultsForSearch: Number.POSITIVE_INFINITY
        });
    },
    content: content,
    theme: '.tooltipster-shadow',
    position: 'bottom',
    interactive: true,
    trigger: 'click'
});

As you can see I specified "functionReady" to call select2 (great jquery select plugin) after the initialization of the tooltip.
Now, my issue is, that when I click on the it is hiding my tooltip, instead of showing me the content and the tooltip.

What is wrong? I think it's a bug.

PS:
It's also happening without select2, so it's not the select2 plugin.

@calebjacob
Copy link
Owner

This should now be fixed!

@louisameline
Copy link
Collaborator

For your information, there is indeed a bug in the current version of select2 in Internet Explorer, it triggers a click on the body when the dropdown list goes down. It is a bug related to select2 only, not selects in general and not Tooltipster in particular.

https://github.com/ivaynberg/select2/issues/1058

@louisameline
Copy link
Collaborator

... and I just solved it here https://github.com/ivaynberg/select2/pull/1913

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

3 participants