Open Bug 1279253 Opened 6 years ago Updated 7 months ago

selectbox is not refreshing when selected option change


(Core :: DOM: Forms, defect)

Not set




(Reporter: herve.devos, Unassigned)


(Whiteboard: DUPEME)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160502172042

Steps to reproduce:

1 - create test.html with following content :
2 - Open the page in Firefox browser
3 - Modify test.html with content :
	<option selected="">World</option>
- Refresh page in browser by pressing F5

Actual results:

Selected option has not changed in select box, it's still "Hello". Its only displaying "World" when refreshing the page with Ctrl + R

Expected results:

Selected option should have changed in select box, it should be "World"
I can confirm this issue on the latest Nightly 50.0a1 (Build ID: 20160612030220).
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Product: Firefox → Core
Version: 46 Branch → Trunk
still present in FF 53.
Whiteboard: DUPEME

Still present in FF 98.0.1 (64-bit).
This bug made me change the status of a long list of products status, since a new product was added in the list, but the combos kept old values based on the position of the original list.
Not a logic failure.

This is the HTML code in developer console

<tr class="disabled">
     <td><img src="48092.jpg" width="30"></td>
     <td>Cast Sage</td>
           <select name="color_overrides[807]" style="visibility: visible;">
                <option value="">No Override</option>
                <option value="yes">Always Enabled</option>
                <option value="no" selected="">Always Disabled</option>

And the combo shows "No Override", since it was the value of the nth-1 combo before hitting F5.
If Ctrl + F5 is pressed, everything works as expected.

Yes, this is expected. Alternatively you can use autocomplete="off" in the select. This is a form restoration issue, not a layout issue. But I think it's WONTFIX tbh.

Component: Layout: Form Controls → DOM: Forms
You need to log in before you can comment on or make changes to this bug.