fix: Disable save button if no text is entered

This commit is contained in:
Jay Sitter 2023-06-23 23:43:49 -04:00
parent 7145e0be27
commit 5d85e3a7c9

View file

@ -309,7 +309,7 @@ export class MarkdownTextArea extends Component<
<button
type="submit"
className="btn btn-sm btn-secondary ms-2"
disabled={this.isDisabled}
disabled={this.isDisabled || !this.state.content}
>
{this.state.loading && <Spinner className="me-1" />}
{this.props.buttonTitle}