This is a migrated thread and some comments may be shown as answers.

Context Menu - Randomly get Browser's menu

4 Answers 218 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 20 Sep 2018, 03:24 PM

I am using a Kendo  Context Menu on a treeview and some other divs on the page.

Occasionally, when right clicking, I get the browser's right click menu when right clicking.  Its not often, but does occur in both IE11 and Chrome.  (probably 1 out of every 20 times with IE, 1 out of every 30 times with Chrome)

I've tried to narrow down when it happens by clicking in different areas of the treeview items, but there doesn't seem to be a pattern.  The menu is simple:  only a couple items, and is not dynamic.

I'm guessing kendo uses oncontextmenu - so this is a browser issue. I'm just seeing if you have ever seen this issue, and if there is anything that can be done to avoid it.  (or do we just have to accept it)

 

4 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 24 Sep 2018, 08:31 AM
Hello Justin,

Could you post a dojo example that demonstrates the behavior you describe, along with screencast showing the areas you right-click on? This will allow us to check whether the ContextMenu does not show due to how its "filter" option is set or there is another reason behind this behavior.

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Justin Lee
Top achievements
Rank 1
answered on 01 Oct 2018, 02:19 PM

Hi Ivan, sorry for the delay.

I can reproduce the issue in telerik's demo of the context menu, so I didn't create a dojo.

Attached is a screencast of me right clicking on the demo page using Chrome. Of the 27 right clicks, Chrome's menu appears 4 times.  Like I say, I'm pretty sure this is a browser/screen/computer issue, but I'm guessing it will occur on a percent of computers. I'm just wondering if anyone has mentioned it before, and if there are any tricks to avoid it.  (I'm guessing not)

Screencast attached.

0
Ivan Danchev
Telerik team
answered on 03 Oct 2018, 11:43 AM
Hello Justin,

I cannot think of anything else that could be causing this behavior other than an issue in a specific version of the browser. Here's a screencast showing about 40 consecutive right clicks in the same demo and every time the ContextMenu shows as expected. It was recorded in Chrome 69.0.3497.100. If you are using an older version I would suggest upgrading, but we have no knowledge of such issue with the ContextMenu in a specific version of this browser, furthermore you mentioned that you are noticing this in IE11 as well. Is it exhibited on other machines?
With regard to IE11 the behavior was identical at my end  - the browser's own context menu didn't show a single time out of 40 clicks.

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Christian
Top achievements
Rank 1
Iron
answered on 20 Jan 2022, 09:24 PM | edited on 25 Jan 2022, 02:15 PM

Hello Justin,

I found this old thread because of the same problem for me. But I got the browsers default menu much more often sometimes at every click.

For me the problem was not the old Kendo version ("@progress/kendo-ui": "2020.3.1021") but the mouse hardware itself: When I plugged in a newer mouse the "error" could not be reproduced. Using the older mouse again the error occured again.

Nevertheless I think that there must be also a problem in the Kendo component so that it does not work 100% every time.

Hope I could help you or someone else.

Regards,
Christian

 

Update, 25.01.2022:
Strange! Yesterday I could reproduce the problem with the older mouse. But today it is working fine with both mice - not even one single wrong context menu.

Martin
Telerik team
commented on 27 Jan 2022, 09:17 AM

Hi, if the issue still persists, we will need a way to reproduce it locally so that we can check if it is caused by anything Kendo-related. If you could share steps in a Dojo example, that would be really helpful.
Tags
Menu
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Justin Lee
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Iron
Share this question
or