@uform/core
Advanced tools
Comparing version 0.1.0-beta.9 to 0.1.0-beta.10
@@ -305,2 +305,5 @@ "use strict"; | ||
}); | ||
this.errors = []; | ||
this.valid = true; | ||
this.invalid = false; | ||
} | ||
@@ -312,2 +315,5 @@ } else { | ||
}); | ||
this.errors = []; | ||
this.valid = true; | ||
this.invalid = false; | ||
} | ||
@@ -328,2 +334,5 @@ | ||
}); | ||
this.errors = []; | ||
this.valid = true; | ||
this.invalid = false; | ||
} | ||
@@ -335,2 +344,5 @@ } else { | ||
}); | ||
this.errors = []; | ||
this.valid = true; | ||
this.invalid = false; | ||
} | ||
@@ -337,0 +349,0 @@ |
{ | ||
"name": "@uform/core", | ||
"version": "0.1.0-beta.9", | ||
"version": "0.1.0-beta.10", | ||
"license": "MIT", | ||
@@ -28,3 +28,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "af0ebd443b0e6728c95b6835f3b15fce08acb1d8" | ||
"gitHead": "26330ee1675b8b1fd8a53d32da191f2b35f2c141" | ||
} |
@@ -280,2 +280,5 @@ import { | ||
}) | ||
this.errors = [] | ||
this.valid = true | ||
this.invalid = false | ||
} | ||
@@ -287,2 +290,5 @@ } else { | ||
}) | ||
this.errors = [] | ||
this.valid = true | ||
this.invalid = false | ||
} | ||
@@ -292,6 +298,3 @@ this.dirty = true | ||
const propsRequired = this.getRequiredFromProps(published.props) | ||
if ( | ||
!isEmpty(propsRequired) && | ||
!isEqual(propsRequired, this.required) | ||
) { | ||
if (!isEmpty(propsRequired) && !isEqual(propsRequired, this.required)) { | ||
this.required = propsRequired | ||
@@ -304,2 +307,5 @@ this.errors = [] | ||
}) | ||
this.errors = [] | ||
this.valid = true | ||
this.invalid = false | ||
} | ||
@@ -311,2 +317,5 @@ } else { | ||
}) | ||
this.errors = [] | ||
this.valid = true | ||
this.invalid = false | ||
} | ||
@@ -313,0 +322,0 @@ this.dirty = true |
75617
2322