Closed
Bug 297172
Opened 20 years ago
Closed 19 years ago
[FIX]Select box bug when dynamicly enabling and disabling multiple selects.
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: jeppe.dyrby, Assigned: bzbarsky)
Details
(Keywords: testcase)
Attachments
(2 files)
|
2.67 KB,
text/html
|
Details | |
|
2.79 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050527 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050527 Firefox/1.0+ When dynamicly changing the state of a select box (<select>) with javascript from a list with multiple selections, to a single selection dropdown box, the selected items (multiple) are still selected when the box drops down. When the mouse hovers over some elements, they seese to be selected. I believe this is a bug, because it should not be possible to have multiple selections in a dropdown box. It should, if at all, only be the first option that would be selected if such a change should happend. This was in Deer Park Alpha 1, not tested in other versions, or on other platforms. An example shall be made ASAP. Reproducible: Always Steps to Reproduce: 1. Make select box with multiple selections. 2. Change the state with javascript, while having selected multiple options. 3. Select the box, to make it drop down, see what happends. Actual Results: The multiple selections from the list, wich allows this, is transferred to the single selection dropdown box. Expected Results: Only one should have been selected. An example page will be made ASAP.
| Reporter | ||
Comment 1•20 years ago
|
||
Example page. Mail me if this page for some unknown reason disapears. http://bravoo.dk/playground/bug297172.html
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050609 Firefox/1.0+ ID:2005060918 WFM. The selected items are retained no matter how many times you check "change select box" and no matter how many items you have selected in the dropdown menu.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: unspecified → Other Branch
Updated•19 years ago
|
Version: Other Branch → Trunk
| Assignee | ||
Comment 4•19 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #197270 -
Flags: superreview?(peterv)
Attachment #197270 -
Flags: review?(peterv)
| Assignee | ||
Updated•19 years ago
|
Priority: -- → P3
Summary: Select box bug when dynamicly enabling and disabling multiple selects. → [FIX]Select box bug when dynamicly enabling and disabling multiple selects.
Target Milestone: --- → mozilla1.9alpha
Comment 5•19 years ago
|
||
Comment on attachment 197270 [details] [diff] [review] Proposed patch >Index: content/html/content/src/nsHTMLSelectElement.cpp >=================================================================== >+ PRInt32 selectedIndex; >+ GetSelectedIndex(&selectedIndex); >+ if (selectedIndex > -1) { Any reason to not use mSelectedIndex?
Attachment #197270 -
Flags: superreview?(peterv)
Attachment #197270 -
Flags: superreview+
Attachment #197270 -
Flags: review?(peterv)
Attachment #197270 -
Flags: review+
| Assignee | ||
Comment 6•19 years ago
|
||
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•