Set field validity (ie. border colour) correctly
Changes flagInvalid to forceValidity which can force valid as well as invalid.
This commit is contained in:
parent
b74674ced8
commit
24baf19d65
4 changed files with 8 additions and 7 deletions
|
@ -413,7 +413,7 @@ export default class SetIdServer extends React.Component {
|
|||
tooltipContent={this._getTooltip()}
|
||||
tooltipClassName="mx_SetIdServer_tooltip"
|
||||
disabled={this.state.busy}
|
||||
flagInvalid={!!this.state.error}
|
||||
forceValidity={this.state.error ? false : null}
|
||||
/>
|
||||
<AccessibleButton type="submit" kind="primary_sm"
|
||||
onClick={this._checkIdServer}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue