Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#5869 closed bug (fixed)

SELECT element change event firing on focus first time in IE

Reported by: nberardi Owned by: brandon
Priority: major Milestone: 1.4.1
Component: event Version: 1.4
Keywords: Cc:
Blocked by: Blocking:


This bug is very easy to reproduce. I have personally verified it exists in IE 7 and 8.

I have this simple select:

<select name="zlecenia_index_icpp" id="items_per_page">

<option value="10">10</option>

<option value="25" selected="selected">25</option>

<option value="50">50</option>


and the following code is used for the change event:


var controller_action = this.name.replace(/_/g, '/');

location.href = config.base_url + '/' + controller_action + '/'+this.value;


This code used to work in jQuery 1.3, but in 1.4 the change event is fired as soon as I click on the select box. This only happens one time and then functions normally.

I can't verify the actual problem but it works alot like this code:

$('#items_per_page').one("focus", function() { ... });

Here is where it was originally reported, or at least where I saw a confirmation that others were experiencing my same issue.


Change History (3)

comment:1 Changed 13 years ago by dmethvin

Resolution: fixed
Status: newclosed

comment:2 Changed 13 years ago by mcurry

Resolution: fixed
Status: closedreopened

Still broke. Same test case above. Setting one of the options as selected is important. Fix here: http://github.com/mcurry/jquery/commit/a293f5938eb9efd41158b948f487672d43b7c820

comment:3 Changed 13 years ago by john

Priority: criticalmajor
Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.