Using Javascript to remove an entry from a mutliple select list causes Firefox to 'stick' on the select box for the next click

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
13 years ago
13 years ago

People

(Reporter: cory.joyce, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

When removing an item from a multiple select box using the onclick event the
next click will process as if the entire screen was the select box.  Instead of
processing what is under the cursor when you click Firefox (and Mozilla) will
call the onclick event on the list.

I have tried changing the focus and bluring before removing the item and it does
not help.

Reproducible: Always

Steps to Reproduce:
1.Create a select box allowing multiple selections. 
2.Add an onchange action to remove the selected item. [<select
onchange='this.remove(this.selectedIndex);' onclick='alert("clicked");'
multiple='true' > ]
3.Click an item in the select box.


Actual Results:  
The next click will call the onclick event instead of what is under the cursor.

Expected Results:  
Process what is under the cursor.

Comment 1

13 years ago
Please attach a testcase showing the issue:
https://bugzilla.mozilla.org/attachment.cgi?bugid=292636&action=enter
(Reporter)

Comment 2

13 years ago
Created attachment 182492 [details]
HTML file using javascript to remove an item from a select list

Updated

13 years ago
Attachment #182492 - Attachment mime type: text/plain → text/html

Comment 3

13 years ago
WFM: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050720
Firefox/1.0+

pleae reopen if you can reproduce with a nitghly build
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 4

13 years ago
(In reply to comment #3)
> WFM: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050720
> Firefox/1.0+
> 
> pleae reopen if you can reproduce with a nitghly build

Broken in 1.06, fixed in nightly.
You need to log in before you can comment on or make changes to this bug.