mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-02 14:12:42 +08:00
fix(calendar): regression in multi-day selection
This commit is contained in:
parent
e34817d89f
commit
74064c8d49
@ -467,12 +467,12 @@ export default class CalendarView extends ViewMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const title of titles) {
|
for (const title of titles) {
|
||||||
if (endTime && !endDate) {
|
if (startTime && endTime && !endDate) {
|
||||||
endDate = startDate;
|
endDate = startDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
startDate = (startTime ? `${startDate}T${startTime}:00` : startDate);
|
startDate = (startTime ? `${startDate}T${startTime}:00` : startDate);
|
||||||
if (!endDate && !startTime) {
|
if (!startTime) {
|
||||||
const endDateOffset = CalendarView.#offsetDate(endDate ?? startDate, 1);
|
const endDateOffset = CalendarView.#offsetDate(endDate ?? startDate, 1);
|
||||||
if (endDateOffset) {
|
if (endDateOffset) {
|
||||||
endDate = CalendarView.#formatDateToLocalISO(endDateOffset);
|
endDate = CalendarView.#formatDateToLocalISO(endDateOffset);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user