We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2b65c commit ed33c7bCopy full SHA for ed33c7b
docs/framework/react/guides/form-composition.md
@@ -124,7 +124,11 @@ function SubscribeButton({ label }: { label: string }) {
124
const form = useFormContext()
125
return (
126
<form.Subscribe selector={(state) => state.isSubmitting}>
127
- {(isSubmitting) => <button disabled={isSubmitting}>{label}</button>}
+ {(isSubmitting) => (
128
+ <button type="submit" disabled={isSubmitting}>
129
+ {label}
130
+ </button>
131
+ )}
132
</form.Subscribe>
133
)
134
}
0 commit comments