Prevent clicking in week number label

This commit is contained in:
Sergio Crisostomo 2018-02-27 08:35:28 +01:00
parent 0fce118ef2
commit c10c5aae55

View file

@ -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);
},
}
};
};