What is the current behavior?
addEndListener on Transition has two arguments, node and done. node is a function and done is undefined.
What is the expected behavior?
node should be the nodeRef and done should be a function
Look at this line:
https://github.com/reactjs/react-transition-group/blame/2989b5b87b4b4d1001f21c8efa503049ffb4fe8d/src/Transition.js#L350
if this.props.nodeRef exists, then maybeNode becomes this.nextCallback and maybeNextCallback becomes undefined?
Could you provide a CodeSandbox demo reproducing the bug?
What is the current behavior?
addEndListeneronTransitionhas two arguments,nodeanddone.nodeis a function anddoneis undefined.What is the expected behavior?
nodeshould be the nodeRef anddoneshould be a functionLook at this line:
https://github.com/reactjs/react-transition-group/blame/2989b5b87b4b4d1001f21c8efa503049ffb4fe8d/src/Transition.js#L350
if
this.props.nodeRefexists, thenmaybeNodebecomesthis.nextCallbackandmaybeNextCallbackbecomes undefined?Could you provide a CodeSandbox demo reproducing the bug?