JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<canvas id="canvasId" style="border: 1px solid black"></canvas>
<br>
<canvas style="border: 1px solid black"></canvas>
</body>
</html>
JavaScript
/*$( "#canvasId" ).mousedown(function(event){
event.preventDefault();
});*/
document.getElementById( "canvasId" ).onmousedown = function(event){
event.preventDefault();
};