Bug fix
This commit is contained in:
parent
a8674e4d7a
commit
535634e390
5
components/dist/input.js
vendored
5
components/dist/input.js
vendored
@ -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);
|
||||
}
|
||||
|
||||
2
components/dist/input.min.js
vendored
2
components/dist/input.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user