-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
only a single delegated tooltip selector is supported on a node #14167
Comments
Interesting. Could you compile a live test case demonstrating this? Preferably using something like JS Bin. |
Also, implementing this would require a fair bit of change to the current tooltip plugin, not sure if that would be worth the hassle – you could add a wrapper and use that instead of the body to delegate from. |
I can't seem to get tooltips to work at all on jsbin. It looks like it would require work, but having to restructure your html and your css to work around it is a bit of a pain. Also, in my case, I'm using turbolinks, so the layer of hierarchy would need to be between html and body unless I want to rebuild my handlers every time I fetch a page (which is what I am doing now). |
Here's a bin. |
Thanks for the bin. I should have been able to figure the bin out myself but I must not do my best work at that hour (I must have been running script before jquery was loaded). Anyhow, I assume that popover has the same problem as well as any other delegated handlers. I'll take a look into it as well. |
Closing for the pull request. |
Based on my experience and my reading of the code, you only can only call tooltip once on a node, so if you want to set up multiple selectors with different default values, behaviors, etc, you are out of luck. In the following example, only "Hover over me" gets a tooltip:
Seems like it would be nice to be able to set up multiple delegated selectors on a node. Would probably require a bit of work though, but if there's an interest in this, I could work on a pull request.
The text was updated successfully, but these errors were encountered: