Opened 9 years ago

Closed 8 years ago

#11231 closed defect (patchwelcome)

dtl - dojoAttachEvent doesn't work for parsed widgets

Reported by: ben hockey Owned by: Neil Roberts
Priority: low Milestone: tbd
Component: DojoX DTL Version: 1.5.0b2
Keywords: Cc:
Blocked By: Blocking:

Description

dojoAttachEvent doesn't work for a parsed widget (see attached test case). i'm fairly sure this is because for a parsed DojoTypeNode? it creates a new template from it's node and the EventNode? attaches itself to the rootNode of this new template.

when the parsed DojoTypeNode? is rendered, it renders the template first (with the EventNode? attaching to the rootNode(dom) of the template) and then it uses the parser to instantiate a widget based on the rootNode of the template. the EventNode? attaches to the dom node rather than the widget because the widget doesn't exist until after the EventNode? is rendered.

events like onClick appear to work but they are not actually working as expected - they are really working from the dom onclick event rather than the widget's onClick.

Attachments (1)

11231.html (2.2 KB) - added by ben hockey 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by ben hockey

Attachment: 11231.html added

comment:1 Changed 8 years ago by ben hockey

Priority: highlow
Resolution: patchwelcome
Status: newclosed

dtl is unsupported. any further patches are welcome.

Note: See TracTickets for help on using tickets.