File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 "dependencies" : {
4848 "immutability-helper" : " ^2.3.1" ,
4949 "prop-types" : " ^15.5.10" ,
50- "react-draggable" : " ^3.0.3 " ,
50+ "react-draggable" : " ^4.5.0 " ,
5151 "react-sortablejs" : " ^1.3.4" ,
5252 "sortablejs" : " ^1.6.1"
5353 },
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export class DraggableAttribute extends React.Component {
1313 constructor ( props ) {
1414 super ( props ) ;
1515 this . state = { open : false , filterText : '' } ;
16+ this . nodeRef = React . createRef ( ) ;
1617 }
1718
1819 toggleValue ( value ) {
@@ -48,8 +49,9 @@ export class DraggableAttribute extends React.Component {
4849 . sort ( this . props . sorter ) ;
4950
5051 return (
51- < Draggable handle = ".pvtDragHandle" >
52+ < Draggable handle = ".pvtDragHandle" nodeRef = { this . nodeRef } >
5253 < div
54+ ref = { this . nodeRef }
5355 className = "pvtFilterBox"
5456 style = { {
5557 display : 'block' ,
You can’t perform that action at this time.
0 commit comments