mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 01:10:36 +03:00
fix: sync selectedValue and inputValue on opening (#640)
This commit is contained in:
@@ -208,6 +208,13 @@ export default {
|
|||||||
this.currentValue = val;
|
this.currentValue = val;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
popupVisible: {
|
||||||
|
handler(val) {
|
||||||
|
if (val) {
|
||||||
|
this.currentValue = this.innerValue;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (typeof this.format === 'object') {
|
if (typeof this.format === 'object') {
|
||||||
|
|||||||
Reference in New Issue
Block a user