aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/main
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-07-03 14:16:51 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-07-03 14:16:51 +0300
commitfb1c478e5e34eec187f2567a8709e08fc3df8b8c (patch)
tree7715997f05711672bcc3ca903c4c11368066930a /client/src/main
parentaa5546133d5f93a465f36c93b14e7c9d87f4c0c5 (diff)
downloadvaadin-framework-fb1c478e5e34eec187f2567a8709e08fc3df8b8c.tar.gz
vaadin-framework-fb1c478e5e34eec187f2567a8709e08fc3df8b8c.zip
Fix wrapping div getting focused in CheckBoxGroup and RadioButtonGroup (#11021)
Fixes #9731
Diffstat (limited to 'client/src/main')
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java b/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java
index 244fb5e604..87350345de 100644
--- a/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java
+++ b/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java
@@ -90,6 +90,8 @@ public class ChildFocusAwareFlowPanel extends FocusableFlowPanel
public ChildFocusAwareFlowPanel() {
eventBus = new HandlerManager(this);
getElement().getStyle().setOutlineStyle(OutlineStyle.NONE);
+ // The panel itself should not be focused.
+ getElement().setTabIndex(-1);
super.addFocusHandler(handler);
super.addBlurHandler(handler);
}