#10298 closed defect (invalid)
postCreate hooks on DropDownButtons don't work as in 1.3
Reported by: | Vagabond | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dijit - Form | Version: | 1.4.0b |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have an existing dojo application I'm trying to port to 1.4.0b and my dropdown menus with a postCreate hook to do i18n are being localized correctly but the dropdown menu doesn't display when clicked. Here is some example code:
<div dojoType="dijit.form.DropDownButton" id="filemenubutton"> <script type="dojo/method" event="postCreate"> this.setLabel(dojo.i18n.getLocalization("agentUI", "labels").FILE); </script> <span>FILE</span> <div dojoType="dijit.Menu" id="Filemenu"> <div dojoType="dijit.MenuItem" label="000" id="miHangup" onclick=agent.setState("wrapup");> <script type="dojo/method" event="postCreate"> this.setLabel(dojo.i18n.getLocalization("agentUI", "labels").HANGUP); </script> </div> <div dojoType="dijit.MenuItem" label="000" id="miLogout" onclick=logout(agent);> <script type="dojo/method" event="postCreate"> this.setLabel(dojo.i18n.getLocalization("agentUI", "labels").LOGOUT); </script> </div> </div> </div>
If I comment out the postCreate hook on the dropdown button, things work as before (except that I don't have a post-create hook). In 1.3 this worked as-is.
Andrew
Change History (2)
comment:1 Changed 11 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
Probably because your postCreate() is missing a this.inherited(arguments) call. If not, please reopen (but not until you attach a full testcase).