My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 5284: onclick handler is not fired correctly when it is in option element of dropdown
12 people starred this issue and may be notified of changes. Back to list
Reported by, Dec 9, 2008
Chrome Version       :
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
    Firefox 3: OK
         IE 7: OK

What steps will reproduce the problem?
1. Go to "Step 1: Find Your Course"
2. Select a semester

What is the expected result?
The dropdown list of "select department" should immediately load and allow 
the user to click on it.

What happens instead?
The user needs to click outside of the dropdown list for the selection to 
be registered and the next dropdown to load.
This bug is reproducible on other Barnes & Noble College Bookstore 
websites.  Simply Google other bookstores and you'll find them.

Dec 10, 2008
#1 *
Safari 3.2: Same issue



The time when "onclick" event is triggered is different between Firefox/IE and 
Chrome/Safari, this is the cause of this issue. Lets separate the selecting dropdown 
operation into 2 periods:

1. Click the dropdown, dropdown options get expanded.
2. Choose an option

In IE/Firefox, "onclick" event is triggered after step 2, however in Chrome/Safari, 
the "onclick" event is triggered before step 2 and after step 1. In other words, when 
the "onclick" event is triggered in Chrome/Safari, the value of dropdown is not 
changed by user yet, this is really a problem.

As a result, in Chrome, in the reduction the "onclick" event cannot display the 
selected value below the dropdown, this can only be done by the "onblur" event. 
However in Firefox/IE, everything is done by the "onclick" event.
1.1 KB   Download
Status: Untriaged
Labels: -Area-Misc Area-WebKit HasReduction JavaScript Area-Compat
Jan 16, 2009
This should be upstreamed to Webkit.
Status: Assigned
Labels: -Area-Compat
Feb 3, 2009
Bug filed upstream :
Status: Upstream
Owner: ---
Labels: reported-to-webkit
Oct 7, 2009
(No comment was entered for this change.)
Labels: Mstone-X
Jan 12, 2010
#5 *
 Issue 9079  has been merged into this issue.
Jan 12, 2010
#6 *
(No comment was entered for this change.)
Summary: onclick handler is not fired correctly when it is in option element of dropdown
Jan 12, 2010
#7 *
 Issue 31836  has been merged into this issue.
Aug 6, 2010
(No comment was entered for this change.)
Status: ExternalDependency
Nov 24, 2010
Internet Explorer 7 doesn't fully handle the onclick event in the same manner as Firefox, as it won't return the value of the currently clicked item, but rather the last selected item. For both Internet Explorer and Webkit browsers (Chrome, Safari, Maxthon, etc.), you can work around these issues by using 'onchange' instead.
Feb 19, 2011
There isn't a workaround I've found for this - see my site at which has a Lotto Plus 5 select list in the middle of the home page. If you want to show one of the select options by default (I show the first one, which is "SELECTED"), then onChange will *not* trigger in Chrome/Chromium if I click-and-release on that default option. I've even got both an onClick and onChange for that select list and it still doesn't work if the default option is clicked on (but it does work in Firefox and Opera). Has anyone else got a workaround for this - the failure to fix this issue for over 2 years (either in Chrome/Chromium or upstream in WebKit) is quite disappointing really.
Jul 15, 2011
Test case added to the upstream bug is:

That test case appears to be working for me in Chrome 14 dev.

Labels: -reported-to-webkit
Jul 15, 2011
(No comment was entered for this change.)
831 bytes   View   Download
Mar 10, 2013
(No comment was entered for this change.)
Labels: -Area-WebKit Cr-Content
Apr 5, 2013
(No comment was entered for this change.)
Labels: -Cr-Content Cr-Blink
Sep 5, 2013
Any update on this?
Sign in to add a comment

Powered by Google Project Hosting