diff --git a/src/components/views/elements/Field.js b/src/components/views/elements/Field.js index daf6ec0ce1..84d14802d1 100644 --- a/src/components/views/elements/Field.js +++ b/src/components/views/elements/Field.js @@ -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) => { if (this.props.onValidate) { const result = this.props.onValidate(ev.target.value);