Closed Bug 231712 Opened 21 years ago Closed 21 years ago

select: onchange doesn't run if you change the value with the keybord but runs with the mouse

Categories

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

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 126379

People

(Reporter: vromman.laurent, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)
Build Identifier: "Firebird/0.7"

I use a html code like this one. If i change the value of "mois" with the 
mouse, check_date runs. If i change it with the keyboard, it doesn't.

<script type="text/javascript"><!--
function check_date()
{	
//some commands
}
//-->
</script>

<form>
<select name="mois" onchange="check_date()">
		<option value="01">...</option>
		<option value="02">...</option>
</select>
</form>

Reproducible: Always

Steps to Reproduce:
1.Load a similar page
2.Try to mofify mois with the keyboard

Actual Results:  
The function doesn't run in the second case

Expected Results:  
Mozilla should have run the script in each case
onchange should fire when the <select> loses focus. does it?
Dupe of 126379.

*** 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.