We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17a9e8 commit 974a896Copy full SHA for 974a896
lib/utils/positionFns.es6
@@ -3,6 +3,9 @@ import React from 'react';
3
import {innerWidth, innerHeight, outerWidth, outerHeight} from './domFns';
4
5
export function getBoundPosition(draggable, clientX, clientY) {
6
+ // If no bounds, short-circuit and move on
7
+ if (!draggable.props.bounds) return [clientX, clientY];
8
+
9
let bounds = JSON.parse(JSON.stringify(draggable.props.bounds));
10
let node = React.findDOMNode(draggable);
11
let parent = node.parentNode;
0 commit comments