mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 11:49:01 +08:00
fix: 🐛 fix calendar widget doesn't close when click on a note
This commit is contained in:
parent
3e6cc1b449
commit
14a3b2811d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user