telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
463 stars 213 forks source link

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

Closed nchueva closed 1 month ago

nchueva commented 1 month ago

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

dtopalov commented 1 month ago

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.