diff --git a/node_modules/react-draggable/lib/Draggable.js b/node_modules/react-draggable/lib/Draggable.js index 96156fd..bd0da01 100644 --- a/node_modules/react-draggable/lib/Draggable.js +++ b/node_modules/react-draggable/lib/Draggable.js @@ -225,6 +225,7 @@ export default class Draggable extends React.Component { + e.stopPropagation(); log('Draggable: onDragStart: %j', coreData); // Short-circuit if user's callback killed it. @@ -236,6 +237,7 @@ export default class Draggable extends React.Component { + e.stopPropagation(); if (!this.state.dragging) return false; log('Draggable: onDrag: %j', coreData); @@ -281,6 +283,7 @@ export default class Draggable extends React.Component { + e.stopPropagation(); if (!this.state.dragging) return false; // Short-circuit if user's callback killed it. diff --git a/node_modules/react-draggable/lib/DraggableCore.js b/node_modules/react-draggable/lib/DraggableCore.js index 773194e..3c0066b 100644 --- a/node_modules/react-draggable/lib/DraggableCore.js +++ b/node_modules/react-draggable/lib/DraggableCore.js @@ -236,6 +236,7 @@ export default class DraggableCore extends React.Component = (e) => { + e.stopPropagation(); // Make it possible to attach event handlers on top of this one. this.props.onMouseDown(e); @@ -300,6 +301,7 @@ export default class DraggableCore extends React.Component = (e) => { + e.stopPropagation(); // Prevent scrolling on mobile devices, like ipad/iphone. if (e.type === 'touchmove') e.preventDefault(); @@ -345,6 +347,7 @@ export default class DraggableCore extends React.Component = (e) => { + e.stopPropagation(); if (!this.state.dragging) return; const position = getControlPosition(e, this.state.touchIdentifier, this); diff --git a/package.json b/package.json index d573208..0da25e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v-react-pivottable", - "version": "0.11.9", + "version": "0.11.10", "description": "A React-based pivot table", "main": "PivotTableUI.js", "files": [