add guard

This commit is contained in:
Cory LaViska
2021-03-06 15:23:06 -05:00
parent 6062e73022
commit 96091e42ff

View File

@@ -258,7 +258,9 @@ export class SlInput extends LitElement {
@watch('value')
handleValueChange() {
this.invalid = !this.input.checkValidity();
if (this.input) {
this.invalid = !this.input.checkValidity();
}
}
render() {