Opened 5 years ago

Last modified 18 months ago

#17803 assigned defect

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

Reported by: dojonovice@… 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 5 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 5 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 5 years ago by bill

#11012 is a duplicate of this ticket.

comment:4 Changed 4 years ago by dylan

Milestone: 1.111.12

comment:5 Changed 18 months ago by dylan

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