mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
fix: Disable save button if no text is entered
This commit is contained in:
parent
7145e0be27
commit
5d85e3a7c9
1 changed files with 1 additions and 1 deletions
|
@ -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