JSFiddle - React, Tailwind, and code Playground

by kthornbloom

HTML

<p id="noContextMenu">The context menu has been disabled on this paragraph.</p>
<p>But it has not been disabled on this one.</p>

<div class="logowrap">
<a href="#">Linkydoo</a>
</div>

JavaScript

var noContext = document.getElementById('noContextMenu');

noContext.addEventListener('contextmenu', e => {
  e.preventDefault();
});