Merge pull request #3066 from SergioCrisostomo/datepicker
Prevent clicking in week number label
This commit is contained in:
commit
57c38ada12
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick (cell) {
|
handleClick (cell) {
|
||||||
if (cell.disabled) return;
|
if (cell.disabled || cell.type === 'weekLabel') return;
|
||||||
const newDate = new Date(clearHours(cell.date));
|
const newDate = new Date(clearHours(cell.date));
|
||||||
|
|
||||||
this.$emit('on-pick', newDate);
|
this.$emit('on-pick', newDate);
|
||||||
|
@ -50,4 +50,4 @@ export default {
|
||||||
this.$emit('on-change-range', newDate);
|
this.$emit('on-change-range', newDate);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue