@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.
- package/CHANGELOG.md +11 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/submit-button.tsx +3 -4
package/src/submit-button.tsx
CHANGED
@@ -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
|
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
|
)
|