Fix bug
This commit is contained in:
parent
f3d5c07ada
commit
b1195e5bfd
|
@ -15,6 +15,11 @@ class ValidatorCore implements Validator {
|
||||||
value: any;
|
value: any;
|
||||||
error: string;
|
error: string;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this.value = null;
|
||||||
|
this.error = null;
|
||||||
|
}
|
||||||
|
|
||||||
required() {
|
required() {
|
||||||
if (this.error === null && this.value === null) {
|
if (this.error === null && this.value === null) {
|
||||||
this.error = 'required';
|
this.error = 'required';
|
||||||
|
|
Loading…
Reference in a new issue