My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  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 jonathan...@gmail.com, Dec 9, 2008
Chrome Version       : 0.4.154.33
URLs (if applicable) : http://lehigh.bncollege.com/webapp/wcs/stores/servlet/TBWizardView?
catalogId=10001&storeId=13051&langId=-1&level=1
http://wm.bncollege.com/webapp/wcs/stores/servlet/TBWizardView?
catalogId=10001&storeId=17554&langId=-1&level=1
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 *...@chromium.org
Safari 3.2: Same issue

Reduction:

http://go/reductions/5284/test-standard.html

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.
test-standard.html
1.1 KB   Download
Status: Untriaged
Cc: anan...@chromium.org
Labels: -Area-Misc Area-WebKit HasReduction JavaScript Area-Compat
Jan 16, 2009
#2 j...@chromium.org
This should be upstreamed to Webkit.
Status: Assigned
Owner: anan...@chromium.org
Cc: -anan...@chromium.org
Labels: -Area-Compat
Feb 3, 2009
#3 jasn...@chromium.org
Bug filed upstream : https://bugs.webkit.org/show_bug.cgi?id=23720
Status: Upstream
Owner: ---
Cc: anan...@chromium.org
Labels: reported-to-webkit
Oct 7, 2009
#4 ka...@chromium.org
(No comment was entered for this change.)
Cc: ka...@chromium.org
Labels: Mstone-X
Jan 12, 2010
#5 *...@chromium.org
 Issue 9079  has been merged into this issue.
Cc: dglaz...@chromium.org ekamensk...@chromium.org
Jan 12, 2010
#6 *...@chromium.org
(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 *...@chromium.org
 Issue 31836  has been merged into this issue.
Aug 6, 2010
#8 evan@chromium.org
(No comment was entered for this change.)
Status: ExternalDependency
Nov 24, 2010
#9 dragonbl...@gmail.com
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
#10 rkll...@gmail.com
There isn't a workaround I've found for this - see my site at http://lottery.merseyworld.com/ 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
#11 noel@chromium.org
Test case added to the upstream bug https://bugs.webkit.org/show_bug.cgi?id=23720 is:
  https://bug-23720-attachments.webkit.org/attachment.cgi?id=27302

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

Labels: -reported-to-webkit
Jul 15, 2011
#12 noel@chromium.org
(No comment was entered for this change.)
test-case-select.html
831 bytes   View   Download
Mar 10, 2013
#13 bugdro...@chromium.org
(No comment was entered for this change.)
Labels: -Area-WebKit Cr-Content
Apr 5, 2013
#14 bugdro...@chromium.org
(No comment was entered for this change.)
Labels: -Cr-Content Cr-Blink
Sep 5, 2013
#15 jansson@chromium.org
Any update on this?
Sign in to add a comment

Powered by Google Project Hosting