fixed register modal form submit disabled
This commit is contained in:
parent
dee3365fa4
commit
72cc12b49b
|
@ -69,7 +69,8 @@ function materio_user_form_user_modal_form_alter(&$form, FormStateInterface $for
|
|||
$form['actions']['submit']['#attributes'] = array(
|
||||
"@click.prevent" => "register",
|
||||
"@keyup.enter" => "register",
|
||||
"ref" => "register"
|
||||
"ref" => "register",
|
||||
"disabled" => true
|
||||
// ":class" => "can_register"
|
||||
);
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -55,11 +55,15 @@ export default {
|
|||
},
|
||||
checkSubmitEnabled () {
|
||||
console.log("checkSubmitEnabled", this)
|
||||
// debugger;
|
||||
if (this.$refs.register) {
|
||||
if (this.ps === 'Strong') {
|
||||
this.$refs.register.disabled = false
|
||||
} else {
|
||||
this.$refs.register.disabled = true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
register () {
|
||||
console.log('register', this.mail, this.pass1, this.pass2)
|
||||
|
|
Loading…
Reference in New Issue