Skip to content
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

[menu-bar] Add API for closing the overlay(s) #728

Closed
pekam opened this issue Jan 29, 2020 · 3 comments
Closed

[menu-bar] Add API for closing the overlay(s) #728

pekam opened this issue Jan 29, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request vaadin-menu-bar

Comments

@pekam
Copy link
Contributor

pekam commented Jan 29, 2020

Use case: In the menu bar's overlay, we have a component which is not a vaadin-context-menu-item (added with the Java API, but can as well be done with the web component's item.component API). When clicking this component, we'd like the overlay to close.

Currently, the overlay closes only when selecting a vaadin-context-menu-item, and there's no public API to close the menu's manually eg. on click event.

A simple close function would be useful (with Java API as well).

Workaround: menuBar._subMenu.close()

@mvysny
Copy link
Member

mvysny commented Jun 2, 2020

Definitely a good addition, especially when I implement PopupButton by using MenuBar.

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-menu-bar May 19, 2021
@vaadin-bot vaadin-bot added enhancement New feature or request vaadin-menu-bar labels May 19, 2021
@web-padawan web-padawan changed the title Add API for closing the overlay(s) [menu-bar] Add API for closing the overlay(s) May 20, 2021
@sissbruecker sissbruecker self-assigned this Jan 23, 2024
@sissbruecker
Copy link
Contributor

Has been resolved with #7102

@mvysny
Copy link
Member

mvysny commented Apr 25, 2024

Will this be backported to Vaadin 23 please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-menu-bar
Projects
None yet
Development

No branches or pull requests

4 participants