Skip to content

Commit 16261ef

Browse files
authored
Merge pull request #184 from ayd-ab/fix/make-the-library-compatible-with-react-19
fix: make the library compatible with React 19
2 parents 34dba0e + d6a4516 commit 16261ef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
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
},

src/PivotTableUI.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)