Skip to content

Commit

Permalink
fix(form): return from form API object
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Oct 27, 2021
1 parent 32cee07 commit 2335aae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/form/src/FormNew.tsx
Expand Up @@ -158,9 +158,7 @@ export const Form = React.forwardRef((props: FormProps, ref) => {
});

useImperativeHandle(ref, () => ({
submit: () => {
formRef.current.submit();
}
submit: () => formRef.current.submit()
}));

const executeValidators = async (
Expand Down

0 comments on commit 2335aae

Please sign in to comment.