1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Fix import e2e key dialog staying disabled after paste (#10375)

This commit is contained in:
Michael Telatynski
2023-03-15 09:20:20 +00:00
committed by GitHub
parent ad65b4e444
commit 0c38bd7beb
3 changed files with 181 additions and 2 deletions

View File

@ -84,8 +84,7 @@ export default class ImportE2eKeysDialog extends React.Component<IProps, IState>
};
private onPassphraseChange = (ev: React.ChangeEvent<HTMLInputElement>): void => {
this.setState({ passphrase: ev.target.value });
this.onFormChange(); // update general form state too
this.setState({ passphrase: ev.target.value }, this.onFormChange); // update general form state too
};
private onFormSubmit = (ev: React.FormEvent): boolean => {