Skip to content

No way to close ContextMenuOverlayElement (-s) #7560

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
krissvaa opened this issue May 30, 2025 · 0 comments
Open

No way to close ContextMenuOverlayElement (-s) #7560

krissvaa opened this issue May 30, 2025 · 0 comments

Comments

@krissvaa
Copy link
Contributor

ContextMenuOverlayElement does not have a method to close the overlay.

Use case: Opening one context menu after another does not close the other context menus.

Workaround after using #4752 as base:

public void close() {  
  getCommandExecutor().executeScript("arguments[0].close();", this);
}
@mshabarov mshabarov transferred this issue from vaadin/testbench Jun 3, 2025
@yuriy-fix yuriy-fix changed the title No way to close ContextMenu Overlay elements No way to close ContextMenuOverlayElement (-s) Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants