mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2026-03-13 09:50:09 +08:00
Reverted event change
This commit is contained in:
@@ -41,8 +41,7 @@ export class DefaultLinkSegmentWidget extends React.Component<DefaultLinkSegment
|
||||
strokeOpacity: this.props.selected ? 0.1 : 0,
|
||||
strokeWidth: 20,
|
||||
fill: 'none',
|
||||
onContextMenu: (event) => {
|
||||
// TODO: check if event still works
|
||||
onContextMenu: () => {
|
||||
if (!this.props.link.isLocked()) {
|
||||
event.preventDefault();
|
||||
this.props.link.remove();
|
||||
|
||||
Reference in New Issue
Block a user