From c10c5aae55deb9d9729809fbbda116a1393da5f8 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Tue, 27 Feb 2018 08:35:28 +0100 Subject: [PATCH] Prevent clicking in week number label --- src/components/date-picker/base/mixin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/date-picker/base/mixin.js b/src/components/date-picker/base/mixin.js index ba64cc5..ba4f699 100644 --- a/src/components/date-picker/base/mixin.js +++ b/src/components/date-picker/base/mixin.js @@ -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); }, } -}; \ No newline at end of file +}; -- libgit2 0.21.4