Unselect the selected time of the calendar right after it is detected.

This commit is contained in:
Alex Tselegidis 2023-05-04 11:57:02 +02:00
parent d3c96efac5
commit bf3f2d7131
2 changed files with 6 additions and 2 deletions

View file

@ -1111,6 +1111,8 @@ App.Utils.CalendarDefaultView = (function () {
.find('.btn')
.css('width', 'calc(50% - 10px)');
fullCalendar.unselect();
return false;
}

View file

@ -712,7 +712,7 @@ App.Utils.CalendarTableView = (function () {
eventClick: onEventClick,
eventResize: onEventResize,
eventDrop: onEventDrop,
select: onSelect
select: (info) => onSelect(info, fullCalendar)
});
fullCalendar.render();
@ -1659,7 +1659,7 @@ App.Utils.CalendarTableView = (function () {
}
}
function onSelect(info) {
function onSelect(info, fullCalendar) {
if (info.allDay) {
return;
}
@ -1737,6 +1737,8 @@ App.Utils.CalendarTableView = (function () {
.addClass('justify-content-between')
.find('.btn')
.css('width', 'calc(50% - 10px)');
fullCalendar.unselect();
return false;
}