Closed Bug 1754716 Opened 3 years ago Closed 3 years ago

The text on a select element from a hidden option does not change when the option's text changes

Categories

(Core :: Layout: Form Controls, defect)

Firefox 96
defect

Tracking

()

RESOLVED DUPLICATE of bug 1744009

People

(Reporter: fstolte, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

I placed a hidden option in a select element to show the text "Loading..." while the actual options were loading. The text of the option is then changed to "Loading failed" if the loading fails.

Minimal example to reproduce: https://jsfiddle.net/k28bgu09/1/

Actual results:

The text on the select element was still "Loading...".

However, the Dev-Tools show that the option was correctly updated, and hovering over the select element with the node picker sometimes made the correct text appear afterwards.

Expected results:

The text should have changed to "Loading failed" immediately, just as it does when the option is not hidden.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.