You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Merge pull request #2790 from jryans/reg-form-refs
Restore `Field` value getter for `RegistrationForm`
This commit is contained in:
@@ -53,6 +53,12 @@ export default class Field extends React.PureComponent {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Remove this once `RegistrationForm` no longer uses refs */
|
||||||
|
get value() {
|
||||||
|
if (!this.refs.fieldInput) return null;
|
||||||
|
return this.refs.fieldInput.value;
|
||||||
|
}
|
||||||
|
|
||||||
onChange = (ev) => {
|
onChange = (ev) => {
|
||||||
if (this.props.onValidate) {
|
if (this.props.onValidate) {
|
||||||
const result = this.props.onValidate(ev.target.value);
|
const result = this.props.onValidate(ev.target.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user