Closed Bug 1520430 Opened 6 years ago Closed 6 years ago

Select with only option with display none doesn't show drop down

Categories

(Core :: Layout: Form Controls, defect)

Unspecified
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1499578
Tracking Status
firefox-esr60 --- wontfix
firefox64 --- unaffected
firefox65 --- unaffected
firefox66 --- unaffected

People

(Reporter: kamal.deka, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce:

With a fresh in install of fresh version 60.4.0ESR 64bit on windows 10 and run in safe mode. Now view https://jsfiddle.net/tzxa14gf/

HTML
<select id="dropdown2">
<option style="display:none">Select options</option>
</select>

Basically when the select have only one option with style display as none it renders the element incorrectly.

Once one adds more options under select then it renders the element correctly.

<select id="dropdown2">
<option style="display:none">Select options</option>
<option>Option 1</option>
</select>

Actual results:

The element doesn't show any dropdown icon.

Expected results:

the element should show a dropdown icon and the text.

Hi,

I've managed to reproduce this issue on Windows 10 and Mac OS 10.14 using Firefox 60.4.0 ESR.

I will add a component so that the developers can take a look at it.

Thank you for reporting!

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Version: other → Trunk

This works fine on Nightly and release because it was fixed in bug 1499578.

Mats, I don't know if it's worth uplifting to ESR. That fix on isolation is easy enough I guess, not sure about the rest of the select patches that landed around that time. Your call I guess? I don't know how far are we from a new ESR...

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(mats)
Resolution: --- → DUPLICATE

Meh, not worth taking risks on ESR for this IMO.

Flags: needinfo?(mats)
You need to log in before you can comment on or make changes to this bug.