-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Delayed tooltip on button does not appear on first hover after re-enabling #4204
Comments
This appears to be reproduced if an element is disabled - this is because jqLite does not recognize mouseenter events on disabled elements in Angular, as can be seen here. Doing a bit of research into this, this appears to have been incorrect behavior in jQuery, and it was replicated likely to match the original behavior in jQuery - jQuery fixed this behavior it looks like from this ticket. |
Hm, looking into this deeper, it appears that jQuery too also does not log the event, nor does the regular browser, as can be seen here I am inclined to say that this is not a bug unfortunately. One way around this is to take advantage of the new programmatic control of the tooltip with the |
@wesleycho Note that the original example reproduces the behavior when the button is enabled, not disabled. |
Just noting a verification that the event listeners behave as expected independent of tooltips here - this requires investigation into tooltip behavior. |
I went through and debugged a little with a forked version of the Plunker here, and this actually is a garbage collection bug with the cancellation of the timeout on the observer for the The fix is very simple it turns out. |
Awesome! 👍 Thanks @wesleycho |
I'd been watching #3611, and when it resolved I found this behavior where a delayed tooltip on a button would not appear when first mousing over the button after the button had been re-enabled after being disabled.
Here is a plunker example with repro steps in the description:
http://plnkr.co/edit/AvVRQ5h7K4VNGO70jMrF?p=preview
Here is the example template (self-contained):
Here are the repro steps:
The text was updated successfully, but these errors were encountered: