diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-04-18 16:40:32 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-04-20 15:19:23 +0300 |
commit | df7e5d72bffd5eecb94ae8f05d59cf197f8c7d99 (patch) | |
tree | 68780ca0a01544d41cef1da2bdb006e08ca7b009 | |
parent | 435d69624c30bfca82a6104003fc2b28bdfcf2ed (diff) | |
download | vaadin-framework-df7e5d72bffd5eecb94ae8f05d59cf197f8c7d99.tar.gz vaadin-framework-df7e5d72bffd5eecb94ae8f05d59cf197f8c7d99.zip |
Fix recursive menu hiding (#10817)
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VMenuBar.java | 3 |
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) { |