diff --git a/src/Form/Form.tsx b/src/Form/Form.tsx index 3c75573..954c6b5 100644 --- a/src/Form/Form.tsx +++ b/src/Form/Form.tsx @@ -106,12 +106,11 @@ export class Form onValidate, onSubmit, method, + formRef, ...childProps } = this.props; - if (this.props.formRef) { - childProps.ref = this.props.formRef; - } + formRef && (childProps.ref = formRef); return (