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 stays visible if it's target element is removed by clicking it #2153

Open
mhk76 opened this issue Mar 10, 2023 · 4 comments
Open

Tooltip stays visible if it's target element is removed by clicking it #2153

mhk76 opened this issue Mar 10, 2023 · 4 comments

Comments

@mhk76
Copy link

mhk76 commented Mar 10, 2023

When used in a button, that removes itself (e.g. in list of labels or filters), the tooltip stays on screen when the target is removed:
https://jsfiddle.net/wcv2km68/

@GedMarc
Copy link

GedMarc commented Mar 10, 2023

It goes on the body tag by default.... check the app for target and position, then code appropriately...

@mgol
Copy link
Member

mgol commented Mar 13, 2023

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

@mhk76
Copy link
Author

mhk76 commented Mar 14, 2023

Same problem with 1.12.1
Maybe mousedown should be added as tracked close event

@mgol
Copy link
Member

mgol commented Mar 14, 2023

Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex.

mhk76 added a commit to mhk76/jquery-ui that referenced this issue Mar 16, 2023
Fixes issue jquery#2153 Tooltip stays visible if it's target element is removed by clicking it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants