-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: add MenuBar.close() #5745
Conversation
.../vaadin-menu-bar-flow/src/test/java/com/vaadin/flow/component/menubar/tests/MenuBarTest.java
Outdated
Show resolved
Hide resolved
...low-parent/vaadin-menu-bar-flow/src/main/java/com/vaadin/flow/component/menubar/MenuBar.java
Outdated
Show resolved
Hide resolved
...tion-tests/src/main/java/com/vaadin/flow/component/menubar/tests/MenuBarPopupButtonPage.java
Outdated
Show resolved
Hide resolved
...ration-tests/src/test/java/com/vaadin/flow/component/menubar/tests/MenuBarPopupButtonIT.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking merge for now since this might still need some more internal discussion
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
PR for adding public API to web component: vaadin/web-components#7102 |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Comments have been addressed
This ticket/PR has been released with Vaadin 24.4.0.alpha3 and is also targeting the upcoming stable 24.4.0 version. |
Description
add
MenuBar.close()
which allows us to build a PopupButton easily on top of MenuBar. Also allows you to have menu items different than<vaadin-menu-item>
, which also close the MenuBar upon clicking (requires a manual click listener + callingclose()
).Fixes #5742
Type of change
Checklist
Additional for
Feature
type of change