diff options
Diffstat (limited to 'client/src/com/vaadin/client/ui/VOptionGroup.java')
-rw-r--r-- | client/src/com/vaadin/client/ui/VOptionGroup.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VOptionGroup.java b/client/src/com/vaadin/client/ui/VOptionGroup.java index d429752069..9a28111dc5 100644 --- a/client/src/com/vaadin/client/ui/VOptionGroup.java +++ b/client/src/com/vaadin/client/ui/VOptionGroup.java @@ -207,7 +207,11 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler, super.onClick(event); if (event.getSource() instanceof CheckBox) { CheckBox source = (CheckBox) event.getSource(); - + if (!source.isEnabled()) { + // Click events on the text are received even though the + // checkbox is disabled + return; + } if (BrowserInfo.get().isWebkit()) { // Webkit does not focus non-text input elements on click // (#11854) |