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 86c81a6 commit 3704f30Copy full SHA for 3704f30
src/handlers/createHandler.tsx
@@ -303,6 +303,7 @@ export default function createHandler<
303
304
const child = React.Children.only(this.props.children);
305
// @ts-ignore Since React 19 ref is accessible as standard prop
306
+ // https://react.dev/blog/2024/04/25/react-19-upgrade-guide#deprecated-element-ref
307
const ref = (child as ReactElement).props?.ref;
308
if (ref) {
309
if (typeof ref === 'function') {
0 commit comments