File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import * as React from "react" ;
2- import { DraggableEventHandler } from "react-draggable" ;
2+ import { DraggableEventHandler , default as DraggableRoot } from "react-draggable" ;
33import { Resizable , ResizeDirection } from "re-resizable" ;
44
55// FIXME: https://github.com/mzabriskie/react-draggable/issues/381
66// I can not find `scale` too...
77type $TODO = any ;
8- const Draggable = require ( "react-draggable" ) ;
8+ const Draggable : any = DraggableRoot ;
99
1010export 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 }
You can’t perform that action at this time.
0 commit comments