bootstrap
bootstrap copied to clipboard
Fix a race condition between _queueCallback and dispose.
if _queueCallback is called just before dispose the transition complete callback will be called on the disposed component and almost certainly error out.
This can happen if a tooltip is removed just as it gets hidden.
@michaelglas Thank you for your contribution. Please support it adding some tests. (Preferable on baseComponent )
Done
@GeoSot Are we willing to merge this if conflicts are resolved?
@GeoSot Are we willing to merge this if conflicts are resolved?
@XhmikosR @julien-deramond any opinions on this?
It is not the best, but it is a fine defensive approach to solve clumsy implementations
This issue gives so much headache. We should be able to use dispose without having to worry about tooltips or modals being in show/hide transition.