My favorites | Sign in
Google
                
New issue | Search
for
| Advanced search | Search tips
Issue 3508: Clicking on a CheckBox's label triggers two click events
3 people starred this issue and may be notified of changes. Back to list
 
Reported by amirkashani, Mar 26, 2009
Found in GWT Release: 1.6.2

Detailed description:
Clicking the <label> for a CheckBox causes two ClickEvents to be sent to 
any ClickHandlers. If you click on the actual check box, only one event is 
fired.

Tested in hosted mode, IE 7, FireFox 3, and Chrome 1.

Workaround if you have one:
None


Comment 1 by sumitcha...@google.com, Mar 26, 2009
Reproduced in Windows XP IE6 (hosted mode) / IE6, FF3, Chrome (web mode) in GWT 1.6.2
with code snippet below:

public void onModuleLoad() {
  CheckBox cb = new CheckBox();
  cb.setText("Burger");
  cb.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent arg0) {
      Window.alert("Click listener hit!");
    }
  });
  RootPanel.get().add(cb);
}

This is a regression from GWT 1.5.3
Owner: rj...@google.com
Labels: Category-UI Type-Defect Priority-Critical Milestone-1_6_RC2
Comment 2 by rjrjr+pe...@google.com, Apr 14, 2009
(No comment was entered for this change.)
Status: Accepted
Labels: -Milestone-1_6_RC2 Milestone-1_6_1
Comment 3 by rjrjr+pe...@google.com, Apr 14, 2009
(No comment was entered for this change.)
Cc: j...@google.com jlaba...@google.com
Comment 4 by qbanguy7, Apr 23, 2009
Reproduce on Mac OS X and the same issue occurs.
Comment 5 by rjrjr+pe...@google.com, May 01, 2009
(No comment was entered for this change.)
Status: Started
Comment 6 by rjrjr+pe...@google.com, May 11, 2009
Code review http://gwt-code-reviews.appspot.com/33801

Fix submitted to trunk @5333
Status: FixedNotReleased
Comment 8 by ray.ryan, Jul 23, 2009
I see the fix in the source for 1.7. What browser are you seeing the duplicate clicks on? 

Stupid questions:

• Have you done an ant clean since moving to 1.7?
• Are you sure you haven't attached your click  handler twice?
Comment 9 by rjrjr+pe...@google.com, Jul 29, 2009
(No comment was entered for this change.)
Status: Fixed
Labels: Milestone-1_7
Sign in to add a comment