mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-26 10:46:14 +00:00
fix: Disable save button if no text is entered
This commit is contained in:
parent
7145e0be27
commit
5d85e3a7c9
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue