forms can't be disabled, actually

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-05-19 16:46:32 +02:00
parent 48290ab540
commit 86c17682e9
2 changed files with 1 additions and 3 deletions

View file

@ -5,8 +5,6 @@ interface IForm {
onSubmit?: (event: React.FormEvent) => void, onSubmit?: (event: React.FormEvent) => void,
/** Class name override for the <form> element. */ /** Class name override for the <form> element. */
className?: string, className?: string,
/** Prevent the form from being submitted. */
disabled?: boolean,
} }
/** Form element with custom styles. */ /** Form element with custom styles. */

View file

@ -43,7 +43,7 @@ const CSVImporter: React.FC<ICSVImporter> = ({ messages, action }) => {
}; };
return ( return (
<Form onSubmit={handleSubmit} disabled={isLoading}> <Form onSubmit={handleSubmit}>
<Text size='xl' weight='bold' tag='label'>{intl.formatMessage(messages.input_label)}</Text> <Text size='xl' weight='bold' tag='label'>{intl.formatMessage(messages.input_label)}</Text>
<FormGroup <FormGroup
hintText={<Text theme='muted'>{intl.formatMessage(messages.input_hint)}</Text>} hintText={<Text theme='muted'>{intl.formatMessage(messages.input_hint)}</Text>}