diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-03 14:16:51 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-07-03 14:16:51 +0300 |
commit | fb1c478e5e34eec187f2567a8709e08fc3df8b8c (patch) | |
tree | 7715997f05711672bcc3ca903c4c11368066930a /client/src/main | |
parent | aa5546133d5f93a465f36c93b14e7c9d87f4c0c5 (diff) | |
download | vaadin-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.java | 2 |
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); } |