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: { 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);