Skip to content

Commit

Permalink
Fixed top date(month,year) active function
Browse files Browse the repository at this point in the history
  • Loading branch information
ManukMinasyan committed Jan 8, 2020
1 parent 5d4a123 commit 6301328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"name": "vue-functional-calendar",
"description": "Lightweight, high-performance calendar component based on Vue.js",
"version": "2.7.3",
"version": "2.7.4",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
7 changes: 3 additions & 4 deletions src/components/FunctionalCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@
<h2 class="vfc-top-date"
v-if="checkHiddenElement('month')">
<a href="#" @click.prevent="openMonthPicker(key+1)"
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeMonthFunction, 'vfc-underline-active':showMonthPicker}">
{{ calendarItem.month }}
</a>
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeMonthFunction, 'vfc-underline-active':showMonthPicker === key+1}">
{{ calendarItem.month }}</a>
<a href="#" @click.prevent="openYearPicker(key+1)"
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeYearFunction, 'vfc-underline-active':showYearPicker}">
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeYearFunction, 'vfc-underline-active':showYearPicker === key+1}">
{{ calendarItem.year }}
</a>
</h2>
Expand Down

1 comment on commit 6301328

@vercel
Copy link

@vercel vercel bot commented on 6301328 Jan 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.