I've enabled right-click on an element, like so:
<div class=my-content (contextmenu)="openContextMenu($event)">
In my handler, I've added the necessary commands to tell it not to open the browser's context menu:
openContextMenu( $event ) {
// do my thing, and then:
$event.preventDefault();
$event.stopPropagation();
return false;
}
Unfortunately, the browser is selecting the word that I clicked on, which junks up the user experience. This is happening on both Safari and Chrome.
How do I tell the browser NOT to highlight the word I clicked on?