Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#12213 closed defect (duplicate)

Select: doesn't display option with empty value.

Reported by: zimnyx Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

Try this code. Option with label "-------------" is not displayed at all. (FF 3.6)

<html>

    <head>
        <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"
        djConfig="parseOnLoad: true">
        </script>
        <script>
            dojo.require("dijit.form.Select");
        </script>
    </head>
    
    <body class="claro">
        <select name="select" dojoType="dijit.form.Select">
            <option value="">-------------</option>
            <option value="TN" selected="selected">Tennessee</option>
            <option value="VA">Virginia</option>
        </select>
    </body> 
</html> 

Change History (3)

comment:1 Changed 9 years ago by bill

Owner: set to Douglas Hays
Summary: dijit.form.Select doesn't display option with empty value.Select: doesn't display option with empty value.

comment:2 Changed 9 years ago by Douglas Hays

Resolution: duplicate
Status: newclosed

Dup of #9973. For now you must add a value.

comment:3 Changed 8 years ago by bill

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