fix(launch_bar/calendar): dropdown remains open when switching years

This commit is contained in:
Elian Doran 2025-11-29 13:19:49 +02:00
parent 7094f71e32
commit ca7bbefbdc
No known key found for this signature in database

View File

@ -211,8 +211,7 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
const $target = $(e.target); const $target = $(e.target);
// Keep dropdown open when clicking on month select button or year selector area // Keep dropdown open when clicking on month select button or year selector area
if ($target.closest('.btn.dropdown-toggle.select-button').length || if ($target.closest('.btn.dropdown-toggle.select-button').length) {
$target.closest('.calendar-year-selector').length) {
e.stopPropagation(); e.stopPropagation();
return; return;
} }