http://gwt-code-reviews.appspot.com/11801/diff/1/2
File user/src/com/google/gwt/user/client/ui/CheckBox.java (right):

http://gwt-code-reviews.appspot.com/11801/diff/1/2#newcode142
Line 142: }
If you add this line here:
     Event.sinkEvents(labelElem, Event.ONMOUSEUP);

testValueChangeViaLabelClick() will work. The problem here (and yet
another reason why I hate CheckBox) is that because it normally sinks
events only on inputElem, is that we're not seeing the mouse-up when you
click on labelElem, so it's not caching the valueBeforeClick field.

http://gwt-code-reviews.appspot.com/11801

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to