Fixed today button not working on different years
This commit is contained in:
@@ -161,7 +161,10 @@ export const useCalendar = defineStore('calendar', () => {
|
|||||||
const isCurrentScreenActive = computed(() => {
|
const isCurrentScreenActive = computed(() => {
|
||||||
switch (currentConfig.value.viewType) {
|
switch (currentConfig.value.viewType) {
|
||||||
case 'month':
|
case 'month':
|
||||||
return defaultDate.value.month === Number(currentDate.currentMonth.value)
|
return (
|
||||||
|
defaultDate.value.month === Number(currentDate.currentMonth.value) &&
|
||||||
|
defaultDate.value.year === Number(currentDate.currentYear.value)
|
||||||
|
)
|
||||||
|
|
||||||
case 'year':
|
case 'year':
|
||||||
case 'decade':
|
case 'decade':
|
||||||
|
|||||||
Reference in New Issue
Block a user