mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-02 09:11:14 +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
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
className="btn btn-sm btn-secondary ms-2"
|
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.state.loading && <Spinner className="me-1" />}
|
||||||
{this.props.buttonTitle}
|
{this.props.buttonTitle}
|
||||||
|
|
Loading…
Reference in a new issue