Commit b5ca23f5ef46887d49582fa849e4561b2dbd66a3

Authored by Sergio Crisostomo
1 parent c2b7fed0

Use same API for on-change, but add Date object(s) also

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/date-picker/picker.vue
@@ -287,7 +287,7 @@ @@ -287,7 +287,7 @@
287 ); 287 );
288 }, 288 },
289 emitChange () { 289 emitChange () {
290 - this.$emit('on-change', this.publicValue); 290 + this.$emit('on-change', this.visualValue, this.publicValue);
291 this.$nextTick(() => { 291 this.$nextTick(() => {
292 this.dispatch('FormItem', 'on-form-change', this.publicValue); 292 this.dispatch('FormItem', 'on-form-change', this.publicValue);
293 }); 293 });