1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Bring over email address management

This commit is contained in:
Travis Ralston
2019-01-22 15:18:14 -07:00
parent fa1ce61a06
commit aa7afe819f
11 changed files with 342 additions and 11 deletions

View File

@@ -38,6 +38,13 @@ export default class Field extends React.PureComponent {
return this.refs.fieldInput.value;
}
set value(newValue) {
if (!this.refs.fieldInput) {
throw new Error("No field input reference");
}
this.refs.fieldInput.value = newValue;
}
render() {
const extraProps = Object.assign({}, this.props);