You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Set field validity (ie. border colour) correctly
Changes flagInvalid to forceValidity which can force valid as well as invalid.
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user