@@ -31,14 +31,11 @@ export default {
31
31
32
32
if ( isFunction ( this . schema . set ) ) {
33
33
this . schema . set ( this . model , newValue ) ;
34
- // console.log("model-updated via schema", this.model[this.schema.model]);
35
- this . $emit ( "model-updated" , this . model [ this . schema . model ] , this . schema . model ) ;
34
+ this . $emit ( "model-updated" , newValue , this . schema . model ) ;
36
35
37
36
} else if ( this . schema . model ) {
38
37
this . setModelValueByPath ( this . schema . model , newValue ) ;
39
-
40
- // console.log("model-updated via normal", this.model[this.schema.model]);
41
- this . $emit ( "model-updated" , this . model [ this . schema . model ] , this . schema . model ) ;
38
+ this . $emit ( "model-updated" , newValue , this . schema . model ) ;
42
39
}
43
40
}
44
41
}
@@ -93,7 +90,7 @@ export default {
93
90
94
91
clearValidationErrors ( ) {
95
92
if ( isUndefined ( this . schema . errors ) )
96
- this . $set ( this . schema , "errors" , [ ] ) ; // Be reactive
93
+ this . $root . $ set( this . schema , "errors" , [ ] ) ; // Be reactive
97
94
else
98
95
this . schema . errors . splice ( 0 ) ; // Clear
99
96
} ,
0 commit comments