Closed Bug 331325 Opened 15 years ago Closed 14 years ago

Drop box looses value when disabled and then re-enabled

Categories

(Core :: Layout: Form Controls, defect)

1.8 Branch
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: anastasios.maltezos, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

If a drop box has only one value and it gets diabled and then re-enabled the looses it's value and the only value that exists cannot be selected.

Reproducible: Always

Steps to Reproduce:
1. Have a drop-down box that has only one value. 
2. Disabled it. By the use of an radio that sets the drop-box disable attribute to  true
3. Re-enable it. 
4. The value disapears from the drop-down 
5. Try to select the value from the list.
6. The value cannot be selects.

Actual Results:  
Value of the drop-down is empty

Expected Results:  
The value should re-appear after enabling a drop-down

Full test case scenario:

<form name="t">
<td><input type="radio" checked name="rd1" value="enabled"   onclick="document.t.buildno.disabled=false;alert(document.t.buildno.value);document.t.buildno.text='Ego'">On</td>
<td><input type="radio" name="rd1" value="disabled"  onclick="document.t.buildno.disabled=true;">Off</td>
<BR>
<select name="buildno" class="normal08" style="width:100px;text-align:right;" >
<option value="2" selected>2</option>
</select>
</form>
Version: unspecified → 1.5.0.x Branch
Please attach a working testcase using the "Create a New Attachment" link above.
Attached file Test case
WFM with Mozilla 1.8a4 but reproducible with Mozilla 1.8a5 (and SeaMonkey 1.0).
Component: Form Manager → Layout: Form Controls
Product: Firefox → Core
QA Contact: form.manager → layout.form-controls
Version: 1.5.0.x Branch → Trunk
Summary: Drop box looses value is diasabled and the re-enabled → Drop box looses value when disabled and the re-enabled
URL: No ne
Keywords: testcase
Summary: Drop box looses value when disabled and the re-enabled → Drop box looses value when disabled and then re-enabled
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060323 Firefox/1.6a1 ID:2006032303
I see this too.
Version: Trunk → 1.8 Branch
Fixed by reflow branch landing.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.