Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#9041 closed defect (fixed)

ComboBox: could not init value to empty string if option tags used

Reported by: Douglas Hays Owned by: haysmark
Priority: high Milestone: 1.4
Component: Dijit - Form Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Douglas Hays)

If you have inline data for ComboBox?, then value="" on the markup tag does not work. It does work if you use an ItemFileReadStore? with the same data but in JSON format. Seems to occur on all browsers.

Change History (4)

comment:1 Changed 10 years ago by Douglas Hays

Description: modified (diff)

comment:2 Changed 10 years ago by haysmark

Resolution: fixed
Status: newclosed

This is a feature of select tags: the browser selects the first item in the list by default. In never becomes unselected unless you manually set selectedIndex=-1 after you create the thing. I verified that using a div instead of a select fixes this.

Fixed in doc.

comment:3 Changed 10 years ago by haysmark

Actually, wait, using the div causes the FilteringSelect? to render but the store never picks up the items.

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.