We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d778985 commit f6670f6Copy full SHA for f6670f6
1 file changed
lib/utils/positionFns.es6
@@ -17,7 +17,8 @@ export function getBoundPosition(draggable: Draggable, clientX: number, clientY:
17
if (!draggable.props.bounds) return [clientX, clientY];
18
19
// Clone new bounds
20
- let bounds = cloneBounds(draggable.props.bounds);
+ let {bounds} = draggable.props;
21
+ bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);
22
let node = ReactDOM.findDOMNode(draggable);
23
24
if (typeof bounds === 'string') {
0 commit comments