We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0364e8 commit 858ea3cCopy full SHA for 858ea3c
src/VueDatePicker/composables/useHelperFns.ts
@@ -151,7 +151,7 @@ export const useHelperFns = () => {
151
const end = date[1];
152
return [fn[type](start), end ? fn[type](end) : ((time[type] as number[])[1] ?? fn[type](fallbackDate))];
153
}
154
-
+ if (Array.isArray(date) && !isRange) return fn[type](date[date.length - 1] ?? fallbackDate);
155
return fn[type](date as Date);
156
};
157
0 commit comments