Hi,
I just updated BamUI for a project (from 9.x to 10.x).
I have an error when i use the validator plugin.
export default {
data() {
return {
formValidation: {
validMsg: {},
validator: useValidator(),
login: {
username: {
label: "Identifiant",
validator:'required',
},
pwd: {
label: "Mot de passe",
validator:'required',
}
}
},
signIn: {
username: null,
pwd: null
}
}
},
methods: {
login() {
this.formValidation.validator.set(this.formValidation.login);
let {valid, validMsg} = this.formValidation.validator.validate(this.signIn);
this.formValidation.validMsg = validMsg;
if (valid) {
signInWithEmailAndPassword(auth, this.signIn.username, this.signIn.pwd).then(() => {
this.$router.push('/')
}).catch(err => {
this.$toast(err.message);
})
}
}
}
}
Uncaught TypeError: Cannot set property openBlock of #<Object> which has only a gette
i don't have the error when i remove the custom validations
Hi,
I just updated BamUI for a project (from 9.x to 10.x).
I have an error when i use the validator plugin.
i don't have the error when i remove the custom validations