generated from react-component/footer
-
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
elementRefGetterWithDeprecationWarning @ react.development.js?9f62:193
CSSMotion @ CSSMotion.js?a4ab:124
Lines 241 to 253 in e9cb099
| // Auto inject ref if child node not have `ref` props | |
| if (React.isValidElement(motionChildren) && supportRef(motionChildren)) { | |
| const originNodeRef = getNodeRef(motionChildren); | |
| if (!originNodeRef) { | |
| motionChildren = React.cloneElement( | |
| motionChildren as React.ReactElement, | |
| { | |
| ref: nodeRef, | |
| }, | |
| ); | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels