Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fluffy-pumas-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@craftjs/utils': patch
---

Accessing element.ref is no longer supported. ref is now a regular prop.
2 changes: 1 addition & 1 deletion packages/utils/src/EventHandlers/wrapConnectorHooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function cloneWithRef(
element: any,
newRef: any
): React.ReactElement<any> {
const previousRef = element.ref;
const previousRef = element.props.ref;
invariant(
typeof previousRef !== 'string',
'Cannot connect to an element with an existing string ref. ' +
Expand Down