Hi,
I started to use TextBoxComponent, but I don't know how can I validate it. No validationRules property, and when I tried to validate with FormValidator, I get an error.
I tried this:
this.validatorOptions = {
rules: {
'email': { required: true, email: true }
}
}
this.validator = new FormValidator('#sign-up-form', this.validatorOptions)
this.handleSubmit = (event) => {
event.preventDefault();
this.validator.validate()
}
And the error that I got:
TypeError: Cannot read property 'querySelector' of null
select
.../node_modules/@syncfusion/ej2-base/src/dom.js:204
Thank you for any help you provide,
Regards,
Richard