Opened 11 years ago
Closed 9 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)
Change History (2)
Changed 11 years ago by
Attachment: | 11231.html added |
---|
comment:1 Changed 9 years ago by
Priority: | high → low |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
dtl is unsupported. any further patches are welcome.