Opened 7 years ago
Last modified 3 years ago
#17803 assigned defect
Select set("options", ...) doesn't work
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.14 |
Component: | Dijit - Form | Version: | 1.9.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If I set data manually, selected value is not displayed. I must call startup() method after setting.
<select id="select" data-dojo-type="dijit/form/Select" name="values"></select>
var data = [{label: "Label 1", value: 1}, {label: "Label 2", value: 2, selected : true}]; var select = registry.byId("select"); select.set("options", data);
Change History (5)
comment:1 Changed 7 years ago by
Milestone: | tbd → 1.10 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
Summary: | dijit/form/Select and set() method → Select set("options", ...) doesn't work |
comment:2 Changed 7 years ago by
Milestone: | 1.10 → 1.11 |
---|
comment:4 Changed 5 years ago by
Milestone: | 1.11 → 1.12 |
---|
comment:5 Changed 3 years ago by
Milestone: | 1.13 → 1.14 |
---|
Note: See
TracTickets for help on using
tickets.
Won't be able to get to this after all. I made a simple patch but the actual displayed value isn't changing, even though get("displayedValue") returns correctly.