Skip to content

fix: Make react-pivottable compatible with React 19 - #183

Closed
Danchoys wants to merge 2 commits into
plotly:masterfrom
ayd-ab:master
Closed

Danchoys wants to merge 2 commits into
plotly:masterfrom
ayd-ab:master

Conversation

@Danchoys

@Danchoys Danchoys commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Why is it needed

Library crashes instantly when someone presses on a filter to open the dropdown with possible values with a "t.findDOMNode is not a function" error.

Why is it happening

react-pivottable is using an older version of react-draggable library that uses a currently deprecated API from React: ReactDOM.findDOMNode.

What is changed

  • react-draggable upgraded to @^4.5.0
  • Added the necessary nodeRef and ref props as per react-draggable docs
  • Added the prepare script to be able to install it from my fork :)

@Danchoys Danchoys mentioned this pull request Oct 3, 2025
@Danchoys Danchoys closed this Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant