mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix folder highlight
This commit is contained in:
parent
e46191d137
commit
cc2b15d8db
1 changed files with 1 additions and 1 deletions
|
|
@ -5,11 +5,11 @@ import { getExcludedFolder } from 'src/ExcludeFolders/functions/folderFunctions'
|
|||
import { addCSSClassToFileExplorerEl, removeCSSClassFromFileExplorerEL } from 'src/functions/styleFunctions';
|
||||
|
||||
export async function handleViewHeaderClick(event: MouseEvent, plugin: FolderNotesPlugin) {
|
||||
if (!plugin.settings.openFolderNoteOnClickInPath) return;
|
||||
event.stopImmediatePropagation();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
if (!(event.target instanceof HTMLElement)) return;
|
||||
if (!plugin.settings.openFolderNoteOnClickInPath) return;
|
||||
|
||||
const folderPath = event.target.getAttribute('data-path');
|
||||
if (!folderPath) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue