mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Should fix #42
This commit is contained in:
parent
5173962ee8
commit
ca622350e4
1 changed files with 5 additions and 2 deletions
|
|
@ -50,8 +50,11 @@ export async function handleViewHeaderClick(event: MouseEvent, plugin: FolderNot
|
|||
export async function handleFolderClick(event: MouseEvent, plugin: FolderNotesPlugin) {
|
||||
if (!(event.target instanceof HTMLElement)) return;
|
||||
if (!event || !event.target) return;
|
||||
event.stopImmediatePropagation();
|
||||
console.log('handleFolderClick', event.target);
|
||||
if (!event.shiftKey) {
|
||||
event.stopImmediatePropagation();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
const folderPath = event.target.parentElement?.getAttribute('data-path');
|
||||
if (!folderPath) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue