Skip to content

Commit

Permalink
fix(DatetimePicker): fix incorrect confirm value when v-model is not …
Browse files Browse the repository at this point in the history
…used (#9938)
  • Loading branch information
chenjiangui committed Nov 25, 2021
1 parent 2890b77 commit 40f9fd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datetime-picker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ export default createComponent({

this.$nextTick(() => {
this.$nextTick(() => {
// https://github.com/youzan/vant/issues/9775
this.updateInnerValue();
this.$emit('change', picker);
});
});
Expand Down

0 comments on commit 40f9fd8

Please sign in to comment.