mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 01:37:14 +08:00
Fix report modal not submitting
This commit is contained in:
parent
3b3877d690
commit
e50f21905f
@ -50,12 +50,13 @@ export default class ReportPostModal extends Modal {
|
||||
</div>
|
||||
|
||||
<div className="Form-group">
|
||||
{Button.component({
|
||||
children: 'Report Post',
|
||||
className: 'Button Button--primary',
|
||||
loading: this.loading,
|
||||
disabled: !this.reason()
|
||||
})}
|
||||
<Button
|
||||
className="Button Button--primary"
|
||||
type="submit"
|
||||
loading={this.loading}
|
||||
disabled={!this.reason()}>
|
||||
Report Post
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user