We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Hi @jfrag , recommend you to upgrade to 10.8.x
10.8.x
export default { data() { return { formValidation: { validMsg: {}, // new verifications definition since 10.8.0 login: [ { key: 'username', label: 'Identifiant', validator: 'required' }, { key: 'pwd', label: 'Mot de passe', validator: 'required' } ] }, signIn: { username: '', pwd: '' } }; }, methods: { login() { this.$validator.set(this.formValidation.login); let { valid, validMsg } = this.$validator.validate(this.signIn); this.formValidation.validMsg = validMsg; if (valid) { // your code } } } };
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: