Contextmenu is not triggered on iOS13.1 and above Browser

After iOS version is updated to 13.1, on long-press context menu event is not triggering.

Expected solution:

  1. How to hide the default context menu?
  2. How to override the existing default context menu so that we can alter it?
Answered by iCode11089 in 703336022

Please find more details about the issue.

DESCRIPTION OF PROBLEM 

We have developed an online reader where pdf and epub books are rendered and read. In the reader on the selection of text, we present "highlight" and "note" context menus.  After the iOS version is updated to 13.1, on the long-press context menu event is not triggering in the browser and it is displaying the default browser context menu. Which we don't want. We want to hide these context menus from the online reader.

Expected solution

  1. How to hide the default context menu?
  2. How to override the existing default context menu so that we can alter it? 

Steps to reproduce 

  • Login with impelsys / impelsys
  • Select a few lines of text in the reader using a long press.
  • You can observe the default content menu (Copy | Look up | Share ) provided by the browser. We have to hide it or alter it. 

This is very urgent for us and due to these changes, it is breaking our Important feature. Could you please help with a workaround?

I am also facing a similar issue.

I want to add new menus to the default context menu?

Accepted Answer

Please find more details about the issue.

DESCRIPTION OF PROBLEM 

We have developed an online reader where pdf and epub books are rendered and read. In the reader on the selection of text, we present "highlight" and "note" context menus.  After the iOS version is updated to 13.1, on the long-press context menu event is not triggering in the browser and it is displaying the default browser context menu. Which we don't want. We want to hide these context menus from the online reader.

Expected solution

  1. How to hide the default context menu?
  2. How to override the existing default context menu so that we can alter it? 

Steps to reproduce 

  • Login with impelsys / impelsys
  • Select a few lines of text in the reader using a long press.
  • You can observe the default content menu (Copy | Look up | Share ) provided by the browser. We have to hide it or alter it. 
Contextmenu is not triggered on iOS13.1 and above Browser
 
 
Q