Closed
Bug 451200
Opened 16 years ago
Closed 13 years ago
<select> with disabled <option> changing value without changing display
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
DUPLICATE
of bug 387406
People
(Reporter: sbeard, Unassigned)
References
Details
(Keywords: testcase)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 using the following example, when the selected option of a select is disabled, if you mouseover the list and leave with another option highlighted but not selected, when the select looses focus, the value of the select changes to the highlighted option. The onchange is fired but the displayed option text is NOT updated. This happens if FireFox 2 and 3. In Firefox 3 but not 2, when another control like the button in the example is clicked, the changed value is displayed. <form id="form"> <select id="select" onchange="alert(this.value);"> <option value="0" selected disabled>Option 0</option> <option value="1">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option> <option value="4">Option 4</option> </select> <br> <input type="button" value="What's Selected" onclick="alert(form.select.value)"> </form> Reproducible: Always Steps to Reproduce: 1. Start with a selected option disabled (does not matter if by html or script) 2. Drop down the list 3. Mouseover and leave with an option other than the selected option highlighted 4. Click elsewhere on the page - the onchange will fire but the displayed text will not. 5.In Firefox 3, click on another control and the displayed text will update. Expected Results: 1. The selected option should not change unless the user selects it, the browser should never change the value in a field on its own. 2. The displayed value should always match the selected value.
Updated•14 years ago
|
Component: General → Layout: Form Controls
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.form-controls
Hardware: x86 → All
Comment 2•14 years ago
|
||
A similar testcase from a duplicate bug: https://bugzilla.mozilla.org/attachment.cgi?id=402057 I can reproduce with that testcase on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre Mats, seeing that you've fixed a few bugs with <select>, perhaps you'll be interested in this?
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•