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

Kendo-contextmenu: Right click on first level popup menu item doesn't open browser's context menu #4309

Closed
nchueva opened this issue May 21, 2024 · 1 comment

Comments

@nchueva
Copy link

nchueva commented May 21, 2024

Describe the bug

kendo-contextmenu: Right-clicking on a link or button menu item in the first-level menu, as well as on the context template menu items, doesn't open the default browser's context menu. If you right-click on an item from the second and deeper menu levels, the default browser's context menu will be shown.

Bug: Right-clicking (to open the default browser's context menu) is prevented for first-level menu items of kendo-contextmenu but should still be available.

This behavior is especially needed for links to be able to open the link in a new tab from the default browser's menu.

To Reproduce
Steps to reproduce the behavior:

Create a kendo-contextmenu-contained component. Open the context menu and right-click on a menu item that is located in a first-level menu popup. The default browser's context menu won't be shown. The right-click is prevented.

Runnable snippet on StackBlitz: link

Expected behavior
Right click on a first level menu item (especially if it is a link) of kendo-contextmenu should open default browser's context menu.

Screenshots
Screenshot 2024-05-21 111821

Browser

  • OS: all
  • Browser: all
  • Version: all
@nchueva nchueva changed the title Right click on context-menu's first level popup's items as links doesn't open browser's context menu Kendo-contextmenu: Right click on context-menu's first level menu items doesn't open browser's context menu May 21, 2024
@nchueva nchueva changed the title Kendo-contextmenu: Right click on context-menu's first level menu items doesn't open browser's context menu Kendo-contextmenu: Right click on first level popup menu item doesn't open browser's context menu May 21, 2024
@dtopalov
Copy link
Contributor

Hello @nchueva

The current ContextMenu behavior is by design. The reason to prevent the default browser behavior when interacting with the ContextMenu anchor and items is to avoid displaying both menus at the same time (as the Kendo UI ContextMenu component is meant to serve as a customizable alternative).

As this repository is for bug reports only, we are closing this thread. Please use our Feedback Portal to log feature requests:

https://feedback.telerik.com/kendo-angular-ui/

If you need assistance with specific scenario setup or component configuration, please open a ticket in our support system.

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