Skip to content

Commit e6a7f4a

Browse files
committed
fix: Deprecated: element.ref
1 parent 23f44f3 commit e6a7f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/EventHandlers/wrapConnectorHooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function cloneWithRef(
1919
element: any,
2020
newRef: any
2121
): React.ReactElement<any> {
22-
const previousRef = element.ref;
22+
const previousRef = element.props.ref;
2323
invariant(
2424
typeof previousRef !== 'string',
2525
'Cannot connect to an element with an existing string ref. ' +

0 commit comments

Comments
 (0)