Opened 11 years ago

Closed 8 years ago

#5641 closed defect (invalid)

Tooltip remains open if button disabled

Reported by: guest Owned by:
Priority: high Milestone: future
Component: Dijit Version: 1.0
Keywords: tooltip button disabled Cc:
Blocked By: Blocking:


If a button gets disabled while its tooltip is displayed, the tooltip is nearly impossible to get rid of. Neither moving away from the button nor changing the focus to something else removes it. Activating some other tooltip on the page does seem to work, though.

Change History (6)

comment:1 Changed 11 years ago by bill


comment:2 Changed 11 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:3 Changed 10 years ago by bill

Milestone: 1.31.4

bumping 1.4 tickets to 1.5, and most 1.3 tickets to 1.4

comment:4 Changed 10 years ago by bill

Milestone: 1.4future

Can you give a test case? I don't see any code in Tooltip.js that branches based on whether a button is disabled or not.

comment:5 Changed 8 years ago by Wendy Adams

I'm not sure if the problem I am seeing is related to this one or not, but I was seeing tooltips that I had dynamically added to fields on a dialog remain on the interface if I used 'escape' to exit the dialog while the tooltip was displayed. I tried several different ways to get them to go away, and at my current point, they go away, but only because I get a very repeatable error (pasted from Firebug console below). If you want any code samples, I can provide something, and if this is unrelated to this ticket, I apologize... I never saw Dojo until almost 3 months ago.

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:8080/PICTEWUI/dojoroot/dojo/dojo.js :: anonymous :: line 38" data: no] toString(evt=undefined, args=undefined)dojo.js (line 14) evt = undefined args = undefined toString()dojo.js (line 14) toString()dojo.js (line 14) toString()dojo.js (line 14) toString()dojo.js (line 14)

[Break On This Error] (function(){var _1=null;if((_1

dojo.js (line 14) exception in animation handler for: onEnd

comment:6 Changed 8 years ago by bill

Resolution: invalid
Status: newclosed

I think your error is like #10821 or #11143.

I'm going to close this ticket since we never got a test case (unfortunately the ticket was filed by "guest" so no way to get in touch), and also since it seems very unusual for a button to suddenly become disabled while a tooltip is being shown.

Note: See TracTickets for help on using tickets.