Open emdrayallday opened 2 years ago
For cases when you want to manually trigger a loading or disabled state, it will override the form state of
isValid / isValidating / isSubmitting for disabled isSubmitting for loading
isValid / isValidating / isSubmitting
isSubmitting
<FormSubmit disabled={customDisable} loading={customLoading} />
The rest operator is overriding the disabled/loading state respectively when it should be included with the form state
<Button disabled={!formState.isValid || formState.isSubmitting || formState.isValidating} loading={formState.isSubmitting} ref={ref} type="submit" {...otherProps} > {children} </Button>
For cases when you want to manually trigger a loading or disabled state, it will override the form state of
isValid / isValidating / isSubmitting
for disabledisSubmitting
for loadingHow to reproduce
Implementation of FormSubmit component
Brewkit FormSubmit component
The rest operator is overriding the disabled/loading state respectively when it should be included with the form state