jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

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

Open mhk76 opened this issue 2 years ago • 4 comments

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/

mhk76 avatar Mar 10 '23 10:03 mhk76

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

GedMarc avatar Mar 10 '23 10:03 GedMarc

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?

mgol avatar Mar 13 '23 23:03 mgol

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

mhk76 avatar Mar 14 '23 16:03 mhk76

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.

mgol avatar Mar 14 '23 16:03 mgol