Closed Bug 292636 Opened 19 years ago Closed 19 years ago

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

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: cory.joyce, Unassigned)

References

()

Details

Attachments

(1 file)

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.
Please attach a testcase showing the issue:
https://bugzilla.mozilla.org/attachment.cgi?bugid=292636&action=enter
Attachment #182492 - Attachment mime type: text/plain → text/html
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
Closed: 19 years ago
Resolution: --- → WORKSFORME
(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.

Attachment

General

Creator:
Created:
Updated:
Size: