Closed Bug 230652 Opened 21 years ago Closed 21 years ago

Select does not fire onChange event when changed with keyboard

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 126379

People

(Reporter: grahaml, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007

I am using onChange on a SELECT input (i.e. <select onChange="doSomething()">)
to change the visibility of two DIVs.
Using a mouse to change the selected OPTION of the SELECT works fine, and the
DIVs appear and disappear as expected.
However, if I use the keyboard to change the SELECT (up/down arrows), it appears
no onChange event is being fired, as the DIVs do not change.

Reproducible: Always

Steps to Reproduce:
1. Save the attached HTML file and open in Mozilla.
2. Change the SELECT option using a mouse.
3. Change the SELECT option using the keyboard (up and down arrows).

Actual Results:  
At step 2, when using the mouse, the alert appears, indicating that an onChange
event was fired.
At step 3, using the keyboard, no alert appears, indicating that NO onChange
event is fired.

Expected Results:  
onChange events should be fired whenever the selected option is changed,
regardless of input device or whether the drop-down list of the select appeared
or not.

Using the Modern theme.
See bug 229424 comment 1 and bug 126379 comment 3

*** This bug has been marked as a duplicate of 126379 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: