user/Info.js: fix submit button availability when validateStatus
is false (#225)
* user/Info.js: fix submit button available state. Info.js: 修复前端密码验证失败,提交按钮依然可用的问题 * user/Info.js: fix `help` placeholder
This commit is contained in:
parent
d7470c324d
commit
e0477f201c
@ -200,7 +200,7 @@ class Info extends Component {
|
|||||||
onChange={(value) => this.onNewPassword2Change(value)} style={{width: 240}}/>
|
onChange={(value) => this.onNewPassword2Change(value)} style={{width: 240}}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item {...formTailLayout}>
|
<Form.Item {...formTailLayout}>
|
||||||
<Button type="primary" htmlType="submit">
|
<Button disabled={this.state.errorMsg || !this.state.validateStatus} type="primary" htmlType="submit">
|
||||||
提交
|
提交
|
||||||
</Button>
|
</Button>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
Loading…
Reference in New Issue
Block a user