Opened 11 years ago

Closed 11 years ago

#13261 closed defect (invalid)

Different behaviour of dojoType and data-dojo-type

Reported by: MistaPink Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.6.1
Keywords: TooltipDialog, Button, data-dojo-type Cc:
Blocked By: Blocking:



I have a nested tooltip dialog and there one submit button. But the dialog will not be closed if I use data-dojo-type in declaration. If I use dojoType instead everything works perfect. Tested this one with Webkit Nightly Build, Safari Stable and FF4.0.1.

Attachments (1)

dojoFail.html (1.5 KB) - added by MistaPink 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by MistaPink

Attachment: dojoFail.html added

comment:1 Changed 11 years ago by bill

Resolution: invalid
Status: newclosed

As stated in the documentation for data-dojo-type, when you use it you need to put all your attributes in data-dojo-props, so this is invalid:

<button data-dojo-type="dijit.form.Button" type="submit" name="submit">

However, for 1.7 that restriction was lifted so the code you have will work.

Note: See TracTickets for help on using tickets.