fix: prevent the native context menu from appearing when right-clicking on a measurement or angle (https://github.com/OHIF/Viewers/issues/1406) (#1469)

This commit is contained in:
arthur-miller authored and GitHub committed 2020-02-29 08:59:47 -05:00
1 parent 06075ecb51
commit 9b3be9b0c0
2 files changed
+6 -8

No files matched your search

@@ -1,11 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
import React from 'react';
import './ContextMenu.css';
const ContextMenu = ({ items, onClick }) => {
return (
<div className="ContextMenu">
<div className="ContextMenu" onContextMenu={e => e.preventDefault()}>
<ul>
{items.map((item, index) => (
<li key={index}>