Opened 8 years ago

Last modified 4 years ago

#17803 assigned defect

Select set("options", ...) doesn't work

Reported by: [email protected] Owned by: bill
Priority: undecided Milestone: 1.14
Component: Dijit - Form Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:


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 8 years ago by bill

Milestone: tbd1.10
Owner: set to bill
Status: newassigned
Summary: dijit/form/Select and set() methodSelect set("options", ...) doesn't work

comment:2 Changed 8 years ago by bill

Milestone: 1.101.11

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.

comment:3 Changed 8 years ago by bill

#11012 is a duplicate of this ticket.

comment:4 Changed 6 years ago by dylan

Milestone: 1.111.12

comment:5 Changed 4 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.