mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix(calendar): regression in multi-day selection
This commit is contained in:
@@ -467,12 +467,12 @@ export default class CalendarView extends ViewMode {
|
||||
}
|
||||
|
||||
for (const title of titles) {
|
||||
if (endTime && !endDate) {
|
||||
if (startTime && endTime && !endDate) {
|
||||
endDate = startDate;
|
||||
}
|
||||
|
||||
startDate = (startTime ? `${startDate}T${startTime}:00` : startDate);
|
||||
if (!endDate && !startTime) {
|
||||
if (!startTime) {
|
||||
const endDateOffset = CalendarView.#offsetDate(endDate ?? startDate, 1);
|
||||
if (endDateOffset) {
|
||||
endDate = CalendarView.#formatDateToLocalISO(endDateOffset);
|
||||
|
||||
Reference in New Issue
Block a user