forms can't be disabled, actually
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
48290ab540
commit
86c17682e9
2 changed files with 1 additions and 3 deletions
|
@ -5,8 +5,6 @@ interface IForm {
|
|||
onSubmit?: (event: React.FormEvent) => void,
|
||||
/** Class name override for the <form> element. */
|
||||
className?: string,
|
||||
/** Prevent the form from being submitted. */
|
||||
disabled?: boolean,
|
||||
}
|
||||
|
||||
/** Form element with custom styles. */
|
||||
|
|
|
@ -43,7 +43,7 @@ const CSVImporter: React.FC<ICSVImporter> = ({ messages, action }) => {
|
|||
};
|
||||
|
||||
return (
|
||||
<Form onSubmit={handleSubmit} disabled={isLoading}>
|
||||
<Form onSubmit={handleSubmit}>
|
||||
<Text size='xl' weight='bold' tag='label'>{intl.formatMessage(messages.input_label)}</Text>
|
||||
<FormGroup
|
||||
hintText={<Text theme='muted'>{intl.formatMessage(messages.input_hint)}</Text>}
|
||||
|
|
Loading…
Reference in a new issue