Skip to content

feat: Improve MenuBarElement #7338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

feat: Improve MenuBarElement #7338

wants to merge 30 commits into from

Conversation

TatuLund
Copy link
Contributor

Fixes #7362
Fixes #7363

@TatuLund TatuLund marked this pull request as ready for review April 23, 2025 17:02
TatuLund and others added 7 commits April 30, 2025 16:28
…/java/com/vaadin/flow/component/menubar/testbench/MenuBarItemElement.java

Co-authored-by: Sergey Vinogradov <[email protected]>
…/java/com/vaadin/flow/component/menubar/testbench/MenuBarItemElement.java

Co-authored-by: Sergey Vinogradov <[email protected]>
…/java/com/vaadin/flow/component/menubar/testbench/MenuBarElement.java

Co-authored-by: Sergey Vinogradov <[email protected]>
Comment on lines 103 to 106
if (button == null) {
return null;
}
return button.getSubMenu();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (button == null) {
return null;
}
return button.getSubMenu();
return button != null ? button.getSubMenu() : null;

vursen added 2 commits May 6, 2025 07:12
…/java/com/vaadin/flow/component/menubar/testbench/MenuBarElement.java
…/java/com/vaadin/flow/component/menubar/testbench/MenuBarElement.java
Copy link

sonarqubecloud bot commented May 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MenuBarElement.isPopupOpen() MenuBarElement.getSubMenu() returns any open menu overlay, of any menubar
3 participants