Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#1465 closed defect (fixed)

Tooltips do not work with Dojo Buttons

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


I tried putting a tooltip on a Dojo button in the obvious way, as follows:

<button id="four" dojoType="Button" onclick="dojo.debug('button clicked')">button</button> <span dojoType="tooltip" connectId="four" caption="tooltip on button"></span>

This gives an error message, "Error: bad srcObj for srcFunc: onmouseover". The problem seems to be that adding "dojoType='Button'" generates a set of DOM nodes that have little resemblance to the HTML that generated them, and in particular there does not seem to be an obvious place to attach the tooltip.

It seems reasonable to expect this to work.

Change History (7)

comment:1 Changed 15 years ago by jkuhnert

Owner: changed from bill to jkuhnert
Status: newassigned

comment:2 Changed 15 years ago by dylan

Milestone: 0.5
Version: 0.40.3

comment:3 Changed 15 years ago by bill

Component: WidgetsDijit
Owner: changed from jkuhnert to Douglas Hays
Status: assignednew

comment:4 Changed 15 years ago by bill

I guess this should work; haven't thought about the details much. (If we are lucky, it already works.)

comment:5 Changed 15 years ago by Douglas Hays

(In [8824]) References #1465. Added a test to demonstrate a tooltip connectted to a button.

comment:6 Changed 15 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

Already fixed in the 0.9 dijit trunk.

comment:7 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.