Skip to content

Commit 8907810

Browse files
committed
fix: sync selectedValue and inputValue on opening (#640)
1 parent 2cbd0e0 commit 8907810

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/date-picker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ export default {
208208
this.currentValue = val;
209209
},
210210
},
211+
popupVisible: {
212+
handler(val) {
213+
if (val) {
214+
this.currentValue = this.innerValue;
215+
}
216+
},
217+
},
211218
},
212219
created() {
213220
if (typeof this.format === 'object') {

0 commit comments

Comments
 (0)