Merge pull request #3066 from SergioCrisostomo/datepicker

Prevent clicking in week number label
This commit is contained in:
Aresn 2018-02-27 15:41:01 +08:00 committed by GitHub
commit 57c38ada12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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