mirror of
https://github.com/zadam/trilium.git
synced 2025-11-30 04:24:24 +01:00
fix(launch_bar/calendar): dropdown remains open when switching years
This commit is contained in:
parent
7094f71e32
commit
ca7bbefbdc
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user