Ticket #7838 (closed defect: invalid)

Opened 9 months ago

Last modified 8 months ago

Commas in dijit.form.FilteringSelect value clause cause unexpected results

Reported by: arussell Owned by:
Priority: normal Milestone: 1.3
Component: Dijit Version: 1.2.0
Severity: normal Keywords:
Cc:

Description

If a FilteringSelect? dijit contains a comma in the value clause, things don't work as expected. Consider the following code:

<select value="comma, test" dojoType="dijit.form.FilteringSelect">
    <option value="value one">one</option>
    <option value="comma, test">two</option>
    <option value="value three">three</option>
</select>

You'd expect that the option with the label "two" would be selected. In Firefox 3, nothing gets selected, but Firebug reports no errors. In IE 6, an error is thrown: '0.oper' is null or not an object.

Change History

Changed 8 months ago by doughays

  • status changed from new to closed
  • resolution set to invalid
  • milestone changed from tbd to 1.3

FilteringSelect? does not support specifying the widget's value attribute when option tags are used. You must use the "selected" attribute on 1 of the option tags or specify the value programmatically after the widget is created. The value attribute with a comma works OK when using a datastore. There is no value attribute on native selects either.

Note: See TracTickets for help on using tickets.