@@ -31,14 +31,11 @@ export default {
3131
3232 if ( isFunction ( this . schema . set ) ) {
3333 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 ) ;
3635
3736 } else if ( this . schema . model ) {
3837 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 ) ;
4239 }
4340 }
4441 }
@@ -93,7 +90,7 @@ export default {
9390
9491 clearValidationErrors ( ) {
9592 if ( isUndefined ( this . schema . errors ) )
96- this . $set ( this . schema , "errors" , [ ] ) ; // Be reactive
93+ this . $root . $ set( this . schema , "errors" , [ ] ) ; // Be reactive
9794 else
9895 this . schema . errors . splice ( 0 ) ; // Clear
9996 } ,
0 commit comments