Opened 12 years ago

Closed 11 years ago

#5324 closed defect (wontfix)

Tooltips embedded in templates don't work (aroundNode not found errors when moving mouse anywhere)

Reported by: bill Owned by:
Priority: high Milestone: 1.3
Component: Dijit Version: 0.9
Keywords: Cc: Dustin Machi
Blocked By: Blocking:

Description (last modified by bill)

Given a template with a dijit.form.Button and a Tooltip in it, something like

<div>
   <button id="foo" dojoType="dijit.form.Button">...</button>
   <span dojoType="dijit.Tooltip" connectId="foo">...</span>

Even though the tooltip is after the button, it won't initialize correctly, presumably because tooltip can't find the button node since it hasn't been attached to document.body yet.

Not sure how to fix this. Maybe the Tooltip should do it's initialization in startup() rather than postCreate(), and Templated should be changed to call startup on all the nested widgets, but even that would happen before the widget was attached to document.body, for a simple call like new CustomWidget(); .

Mysteriously on FF/mac and FF/linux (but not FF/win) this causes "aroundNode not found" errors to appear when you move your mouse. It seems like the error would just occur once, or actually since the tooltip code has if(node) around the connect code, no error messages would appear (but the tooltip would never show, it would be inert)

Change History (3)

comment:1 Changed 12 years ago by bill

Description: modified (diff)

comment:2 Changed 12 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:3 Changed 11 years ago by bill

Description: modified (diff)
Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.