You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide nodeRef to Transition to fix StrictMode warning (#3865)
* Update react-transition-group
* Pass nodeRef into Transition
* WIP
* fix docs build
* Remove a few ignores and explain the last remaining one
* fixing some overlay refs passed to Transition
got rid of clone children in tooltip also since it would break if wrapper existed around the tooltip component
* fixing transition for Modal and Tray
needed to provide an actual DOM ref to OpenTransition nodeRef
* actually use wrapper refs
* fixing actionbar ref to Transition
* adding wrapper to attach transition nodeRef
technically we could attach it to any DOM node in the Modal/Tray/Popover since we dont have a transition on enter, but for correctness with reflow/.scrollTop we want it as the wrapping element
* fixing rebase
* fix lint
* fix yarn.lock
* fix Tray and Modal types
* fix TS strict
For some reason, Ref doesnt break TS strict linter but RefObject does...
* adding comments
* remove ref from Underlay
Co-authored-by: Niklas Mischkulnig <[email protected]>
Co-authored-by: Rob Snow <[email protected]>
// Attach Transition's nodeRef to outer most wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
// Attach Transition's nodeRef to outer most wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
// Attach Transition's nodeRef to outer most wrapper for node.reflow: https://github.com/reactjs/react-transition-group/blob/c89f807067b32eea6f68fd6c622190d88ced82e2/src/Transition.js#L231
0 commit comments