mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
a5e8945554
commit
8809df839b
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ import {hasClosestByAttribute, hasClosestByTag, hasTopClosestByTag} from "../../
|
||||||
import {isTouchDevice} from "../../util/functions";
|
import {isTouchDevice} from "../../util/functions";
|
||||||
import {App} from "../../index";
|
import {App} from "../../index";
|
||||||
import {refreshFileTree} from "../../dialog/processSystem";
|
import {refreshFileTree} from "../../dialog/processSystem";
|
||||||
|
import {hideTooltip} from "../../dialog/tooltip";
|
||||||
|
|
||||||
export class Files extends Model {
|
export class Files extends Model {
|
||||||
public element: HTMLElement;
|
public element: HTMLElement;
|
||||||
|
|
@ -382,6 +383,7 @@ export class Files extends Model {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.getSelection().removeAllRanges();
|
window.getSelection().removeAllRanges();
|
||||||
|
hideTooltip();
|
||||||
const liElement = hasClosestByTag(event.target, "LI");
|
const liElement = hasClosestByTag(event.target, "LI");
|
||||||
if (liElement) {
|
if (liElement) {
|
||||||
let selectElements: Element[] = Array.from(this.element.querySelectorAll(".b3-list-item--focus"));
|
let selectElements: Element[] = Array.from(this.element.querySelectorAll(".b3-list-item--focus"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue