Skip to content

Commit b49352a

Browse files
authored
Merge pull request #642 from atomicpages/master
Fixing #641
2 parents 0f2ebd0 + b937756 commit b49352a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from "react";
2-
import { DraggableEventHandler } from "react-draggable";
2+
import { DraggableEventHandler, default as DraggableRoot } from "react-draggable";
33
import { Resizable, ResizeDirection } from "re-resizable";
44

55
// FIXME: https://github.com/mzabriskie/react-draggable/issues/381
66
// I can not find `scale` too...
77
type $TODO = any;
8-
const Draggable = require("react-draggable");
8+
const Draggable: any = DraggableRoot;
99

1010
export type Grid = [number, number];
1111

@@ -589,6 +589,7 @@ export class Rnd extends React.PureComponent<Props, State> {
589589
}
590590
// INFO: Make uncontorolled component when resizing to control position by setPostion.
591591
const pos = this.resizing ? undefined : draggablePosition;
592+
592593
return (
593594
<Draggable
594595
ref={this.refDraggable}

0 commit comments

Comments
 (0)