diff options
author | Knoobie <Knoobie@gmx.de> | 2017-05-11 08:04:43 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-05-11 09:04:43 +0300 |
commit | 7b1e48f4698971179d773ee6d9ae413ac8dccce1 (patch) | |
tree | 38e34fcb228ebacdcd8b6a5211ad4578c1552151 /compatibility-client/src | |
parent | dc6e754f8c84c76ca086e6e862977062e5235734 (diff) | |
download | vaadin-framework-7b1e48f4698971179d773ee6d9ae413ac8dccce1.tar.gz vaadin-framework-7b1e48f4698971179d773ee6d9ae413ac8dccce1.zip |
Make clicking checkbox label call focus listeners (#9271)
Fixes the remaining issue from #3944 for Firefox so that a click on the checkbox label calls the focus listener.
Fixes #9290
Diffstat (limited to 'compatibility-client/src')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCheckBox.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCheckBox.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCheckBox.java index 60a0d06821..37308001a1 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCheckBox.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCheckBox.java @@ -60,9 +60,9 @@ public class VCheckBox extends com.google.gwt.user.client.ui.CheckBox el = DOM.getNextSibling(el); } - if (BrowserInfo.get().isWebkit()) { - // Webkit does not focus non-text input elements on click - // (#11854) + if (BrowserInfo.get().isWebkit() || BrowserInfo.get().isFirefox()) { + // Webkit and Firefox do not focus non-text input elements on click + // (#3944) addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { |