From 8907810e8ac54186cfc4f99bfe8176a0e7b707a1 Mon Sep 17 00:00:00 2001 From: mengxiong10 <15623530290@163.com> Date: Sun, 5 Sep 2021 10:35:08 +0800 Subject: [PATCH] fix: sync selectedValue and inputValue on opening (#640) --- src/date-picker.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/date-picker.js b/src/date-picker.js index 4c5a800..12fce74 100644 --- a/src/date-picker.js +++ b/src/date-picker.js @@ -208,6 +208,13 @@ export default { this.currentValue = val; }, }, + popupVisible: { + handler(val) { + if (val) { + this.currentValue = this.innerValue; + } + }, + }, }, created() { if (typeof this.format === 'object') {