Skip to content

Commit

Permalink
Link to ReactElement ref discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Aug 1, 2024
1 parent 2d2c935 commit 528f5cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-utils/src/getReactNodeRef/getReactNodeRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default function getReactNodeRef(element: React.ReactNode): React.Ref<any
? (element.props as any).ref
: // @ts-expect-error element.ref is not included in the ReactElement type
// We cannot check for it, but isValidElement is true at this point
// https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189
element.ref;
}

0 comments on commit 528f5cc

Please sign in to comment.