Ticket #5324 (closed defect: wontfix)

Opened 12 months ago

Last modified 2 days ago

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

Reported by: bill Owned by:
Priority: normal Milestone: 1.3
Component: Dijit Version: 0.9
Severity: normal Keywords:
Cc: dmachi

Description (last modified by bill) (diff)

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

Changed 12 months ago by bill

  • description modified (diff)

Changed 9 months ago by alex

  • milestone changed from 2.0 to 1.3

Milestone 2.0 deleted

Changed 2 days ago by bill

  • status changed from new to closed
  • resolution set to wontfix
  • description modified (diff)
Note: See TracTickets for help on using tickets.