Upgrade to new form binder

This commit is contained in:
John Lyon-Smith
2018-05-15 13:09:13 -07:00
parent 8fcfa26063
commit aa2da7d55d
26 changed files with 307 additions and 194 deletions

View File

@@ -19,7 +19,7 @@ export class ResetPassword extends Component {
isValid: (r, v) => v.length >= 6,
},
reenteredNewPassword: {
isValid: (r, v) => v !== "" && v === r.getFieldValue("newPassword"),
isValid: (r, v) => v !== "" && v === r.getBindingValue("newPassword"),
},
submit: {
noValue: true,
@@ -73,7 +73,7 @@ export class ResetPassword extends Component {
e.preventDefault()
e.stopPropagation()
const obj = this.state.binder.getModifiedFieldValues()
const obj = this.state.binder.getmodifiedBindingValues()
const passwordToken = new URLSearchParams(
decodeURIComponent(window.location.search)
).get("password-token")