This commit is contained in:
sairaj mote 2023-08-23 01:10:14 +05:30
parent a8674e4d7a
commit 535634e390
2 changed files with 5 additions and 2 deletions

View File

@ -349,7 +349,10 @@ customElements.define('sm-input',
get isValid() {
if (this.input.value !== '') {
const _isValid = this.input.checkValidity();
let _validity
let _validity = {
isValid: _isValid,
errorText: ''
}
if (this.validationFunction) {
_validity = this.validationFunction(this.input.value);
}

File diff suppressed because one or more lines are too long