-
-
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
Tooltip selector regression in v3.3.0 #15168
Comments
Youch. The change you reference prevents any "use" of the tooltip/ popup after you've initialized it; e.g you can't pass a string to A solution (!?) would be to alter the signature of
This would then give |
I believe I have a fix for this: 465ef28 |
Nevermind...that seemed to have fixed it for tooltip selectors but broken it for tooltips without selectors. I'll see if I can find a more complete solution tomorrow. |
I can't come up with a good, backwards-compatible way to fix this. I ran into this issue because I'm calling $().tooltip("destroy") where there is a selector, but @mattlunn's proposal would mean I would have to change my code to add the selector in there. It seems like it might be best to revert 1b32376 and look into a new way to handle selectors for v4.0 that fixes #14167. |
Only thing I can think of would be to track the last selector given, and use that as the default for any future calls. |
Maybe instead of storing the instance data per-selector, we could add an explicit |
The selector handling changes introduced in 3.3.0 break manual tooltips initialized with a selector.
http://jsfiddle.net/sk5o25b9/ (worked fine in 3.2.0)
http://jsfiddle.net/sk5o25b9/1 (busted in 3.3.0+)
See PR #14189 and related commit 1b32376
Related to #14167
The text was updated successfully, but these errors were encountered: