We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f44f3 commit 37a9605Copy full SHA for 37a9605
.changeset/fluffy-pumas-smile.md
@@ -0,0 +1,5 @@
1
+---
2
+'@craftjs/utils': patch
3
4
+
5
+Accessing element.ref is no longer supported. ref is now a regular prop.
packages/utils/src/EventHandlers/wrapConnectorHooks.tsx
@@ -19,7 +19,7 @@ export function cloneWithRef(
19
element: any,
20
newRef: any
21
): React.ReactElement<any> {
22
- const previousRef = element.ref;
+ const previousRef = element.props.ref;
23
invariant(
24
typeof previousRef !== 'string',
25
'Cannot connect to an element with an existing string ref. ' +
0 commit comments