@saas-ui/forms 2.3.10 → 2.3.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ export const SubmitButton = forwardRef<SubmitButtonProps, 'button'>(
44
44
  (disableIfInvalid && !formState.isValid) ||
45
45
  isDisabledProp
46
46
 
47
- const field = useFieldProps('submit') as any
47
+ const field = useFieldProps('submit') as SubmitButtonProps
48
48
 
49
49
  return (
50
50
  <Button
@@ -53,11 +53,10 @@ export const SubmitButton = forwardRef<SubmitButtonProps, 'button'>(
53
53
  type="submit"
54
54
  isLoading={formState.isSubmitting || isLoading}
55
55
  isDisabled={isDisabled}
56
+ children={children}
56
57
  {...rest}
57
58
  {...field}
58
- >
59
- {children}
60
- </Button>
59
+ />
61
60
  )
62
61
  }
63
62
  )