Using <select> elements in a panel does bad things.

RESOLVED DUPLICATE of bug 633854

Status

Add-on SDK
General
RESOLVED DUPLICATE of bug 633854
6 years ago
6 years ago

People

(Reporter: KWierso, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

6 years ago
Since the SDK currently lacks a good, standard way to set up a preferences window, panels seem to be a good way to work around it.

But if you include a <select> element in your  panel's content, bad things happen.

The URL linked in this bug has a reduced testcase that shows the problem. (It's on Builder, so you just hit the test button to install it.)

The testcase sets up a panel object and shows it immediately. The panel's content contains only the select element and its options. If you click outside of the panel, the panel goes away (as expected). 

But if you click the select element in the panel, that's where things go badly.

As you can see (because of the panel's reduced height), the <select>'s options dropdown appears behind the panel, and (at least for me on Win7), the options are completely black, and do not get selected by click events. If you click on the select element, you can change the values with the keyboard arrow keys.

Now that you have clicked the select element, try clicking outside of the panel to hide the panel. Doesn't work. The only way to hide the panel (that I've found, at least) is to hit the 'esc' key on the keyboard.

Actual results: Select breaks a lot of stuff in the panel, and doesn't work correctly.

Expected results: Select works correctly and doesn't break the panel.

I'm on the latest 4.0b13pre nightly, if that matters.
(Reporter)

Comment 1

6 years ago
I probably should have linked the panel to a widget element so the panel can be shown more than once without having to reload the entire extension, but I wanted the testcase as simple as possible.
(Reporter)

Comment 2

6 years ago
Didn't see the other bug about this in my search until after I filed.

Figures.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 633854
You need to log in before you can comment on or make changes to this bug.