Skip to content

Commit 8af68a0

Browse files
authored
fix(Area): fix change event emit wrong values (youzan#2290)
fix youzan#2287
1 parent eabbeb4 commit 8af68a0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/area/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ VantComponent({
108108
onChange(event: Weapp.Event) {
109109
const { index, picker, value } = event.detail;
110110
this.code = value[index].code;
111-
let getValues = picker.getValues();
112-
getValues = this.parseOutputValues(getValues);
113111
this.setValues().then(() => {
114112
this.$emit('change', {
115113
picker,
116-
values: getValues,
114+
values: this.parseOutputValues(picker.getValues()),
117115
index
118116
});
119117
});

0 commit comments

Comments
 (0)