mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Comment how we're remembering form vals
This commit is contained in:
parent
5c879d786e
commit
a6b04c462e
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ module.exports = React.createClass({
|
||||||
return {
|
return {
|
||||||
busy: false,
|
busy: false,
|
||||||
errorText: null,
|
errorText: null,
|
||||||
|
// We remember the values entered by the user because
|
||||||
|
// the registration form will be unmounted during the
|
||||||
|
// course of registration, but if there's an error we
|
||||||
|
// want to bring back the registration form with the
|
||||||
|
// values the user enetered still in it. We can keep
|
||||||
|
// them in this component's state since this component
|
||||||
|
// persist for the duration of the registration process.
|
||||||
formVals: {
|
formVals: {
|
||||||
email: this.props.email,
|
email: this.props.email,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue