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
|
@ -491,7 +491,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
|||
label={_t("Password")}
|
||||
value={this.state.accountPassword}
|
||||
onChange={this._onAccountPasswordChange}
|
||||
flagInvalid={this.state.accountPasswordCorrect === false}
|
||||
forceValidity={this.state.accountPasswordCorrect === false ? false : null}
|
||||
autoFocus={true}
|
||||
/></div>
|
||||
</div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue