mirror of
https://github.com/quorafind/Obsidian-Float-Search.git
synced 2026-07-22 07:30:25 +00:00
fix: cannot open leaf outside
This commit is contained in:
parent
ee8703bd6d
commit
54c83dd6b9
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ export default class FloatSearchPlugin extends Plugin {
|
|||
function (...args) {
|
||||
const activeLeaf = this.activeLeaf;
|
||||
if (activeLeaf) {
|
||||
const fsCtnEl = (activeLeaf.parent?.containerEl as HTMLElement).parentElement;
|
||||
const fsCtnEl = (activeLeaf.parent.containerEl as HTMLElement).parentElement;
|
||||
if (fsCtnEl?.hasClass("fs-content")) {
|
||||
if (activeLeaf.view.getViewType() === "markdown") {
|
||||
return activeLeaf;
|
||||
|
|
@ -172,7 +172,7 @@ export default class FloatSearchPlugin extends Plugin {
|
|||
this.setActiveLeaf(newLeaf);
|
||||
}
|
||||
}
|
||||
return next.call(this);
|
||||
return next.call(this, ...args);
|
||||
}
|
||||
return next.call(this, ...args);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue