Bug Tracker

Modify

Ticket #6877 (closed bug: duplicate)

Opened 3 years ago

Last modified 15 months ago

Change event not firing on select box on keypress

Reported by: meyerovb Owned by:
Priority: undecided Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc: bryanam@…
Blocking: Blocked by:

Description

Test the attached code on ie8 by pressing the down key on the keyboard once the page loads. No alert box appears until you blur the select box. Change the jquery version to 1.2.3 instead of 1.4.2, and you get an alert as soon as you press the down key.

Attachments

select_change.html Download (444 bytes) - added by meyerovb 3 years ago.
Test case

Change History

Changed 3 years ago by meyerovb

Test case

comment:1 Changed 3 years ago by addyosmani

  • need changed from Review to Patch
  • Priority set to undecided

I've examined your code and tested it across both IE8 and several other browsers (Safari, Chrome, FF) to verify the behaviour experienced.

Although you are able to trigger the alert in IE by manually changing the selected item, as you rightly say - attempting to do this from the keyboard does not execute the alert as it should.

An alternative workaround could be created by modifying your original solution using .keydown() or .keyup() to detect the keystrokes applied to the select.

Flagging for review and possible patch.

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #6374.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.