fix: 🐛 fix calendar widget doesn't close when click on a note

This commit is contained in:
Jin 2025-04-10 22:09:04 +02:00
parent 3e6cc1b449
commit 14a3b2811d

View File

@ -418,6 +418,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
// click event won't propagate so let's close context menu manually
contextMenu.hide();
// hide all dropdowns, fix calendar widget dropdown doesn't close when click on a note
$('.dropdown-menu').parent('.dropdown').find('[data-bs-toggle="dropdown"]').dropdown('hide');
this.clearSelectedNodes();
const notePath = treeService.getNotePath(data.node);