aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/main
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-04-18 16:40:32 +0300
committerGitHub <noreply@github.com>2018-04-18 16:40:32 +0300
commit406473ab0b52d0fc4af2c97870e97993321c108f (patch)
tree3a6a06061bffbb612cc1547d8ee3a90a31a0cb2f /client/src/main
parent7c662a179ff996ad244eaf17ce19a84ac8ae5095 (diff)
downloadvaadin-framework-406473ab0b52d0fc4af2c97870e97993321c108f.tar.gz
vaadin-framework-406473ab0b52d0fc4af2c97870e97993321c108f.zip
Fix recursive menu hiding (#10817)
Diffstat (limited to 'client/src/main')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VMenuBar.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
index 9dedb78205..016e67e7da 100644
--- a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
+++ b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
@@ -729,6 +729,7 @@ public class VMenuBar extends FocusableFlowPanel
*/
public void hideChildren(boolean animateIn, boolean animateOut) {
if (visibleChildMenu != null) {
+ visibleChildMenu.menuVisible = false;
visibleChildMenu.hideChildren(animateIn, animateOut);
popup.hide(false, animateIn, animateOut);
}
@@ -741,7 +742,7 @@ public class VMenuBar extends FocusableFlowPanel
if (visibleChildMenu != null) {
popup.hide();
setSelected(null);
- menuVisible = !autoClosed;
+ menuVisible = false;
}
if (getParentMenu() != null) {