mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-20 05:10:35 +03:00
fix: popup sholud be not auto closed in time range
This commit is contained in:
@@ -35,7 +35,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
emitChange(type, index) {
|
emitChange(type, index) {
|
||||||
const date = [this.startValue, this.endValue];
|
const date = [this.startValue, this.endValue];
|
||||||
this.$emit('select', date, type, index);
|
this.$emit('select', date, type === 'time' ? 'time-range' : type, index);
|
||||||
},
|
},
|
||||||
handleSelectStart(date, type) {
|
handleSelectStart(date, type) {
|
||||||
this.startValue = date;
|
this.startValue = date;
|
||||||
|
|||||||
Reference in New Issue
Block a user