@saas-ui/forms 2.3.10 → 2.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  )