diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-22 19:05:55 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-22 19:05:55 -0400 |
commit | 63fbf70eaa448730abbb54370441056f0a5f9487 (patch) | |
tree | 5163dc7b342fee27bc9e7da46c82b190af440d64 /ui/src/components/comment-form.tsx | |
parent | c1dbeb43c957b533fe9e20b241bda32d54c0d1a2 (diff) |
Disable submit when loading. Fixes #706
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r-- | ui/src/components/comment-form.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 591bbf1b..24bfb7cb 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -151,7 +151,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> { <button type="submit" class="btn btn-sm btn-secondary mr-2" - disabled={this.props.disabled} + disabled={this.props.disabled || this.state.loading} > {this.state.loading ? ( <svg class="icon icon-spinner spin"> |