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