mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-20 17:50:36 +03:00
fix: panel doesn't close after picking time (#378)
This commit is contained in:
+2
-1
@@ -343,7 +343,8 @@ export default {
|
||||
return value;
|
||||
},
|
||||
afterEmitValue(type) {
|
||||
if (!type || type === this.type) {
|
||||
// this.type === 'datetime', click the time should close popup
|
||||
if (!type || type === this.type || type === 'time') {
|
||||
this.closePopup();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user