diff options
Diffstat (limited to 'server/src/com/vaadin/ui/MenuBar.java')
-rw-r--r-- | server/src/com/vaadin/ui/MenuBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/MenuBar.java b/server/src/com/vaadin/ui/MenuBar.java index 747ce42727..c11cf02aaf 100644 --- a/server/src/com/vaadin/ui/MenuBar.java +++ b/server/src/com/vaadin/ui/MenuBar.java @@ -1008,8 +1008,9 @@ public class MenuBar extends AbstractComponent implements LegacyComponent, if (node instanceof Element && ((Element) node).tagName().equals("menu")) { subMenus.add((Element) node); + } else { + caption += node.toString(); } - caption += node.toString(); } MenuItem menu = new MenuItem(caption.trim(), icon, null); |