mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
Replace the deprecated isSameNode method in DOM Level 4 with the === operator (#15347)
This commit is contained in:
parent
a730a575d5
commit
c88f99646c
51 changed files with 160 additions and 160 deletions
|
|
@ -259,7 +259,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||
if (typeof event.detail === "string") {
|
||||
target = dialog.element.querySelector(`.item--full[data-type="${event.detail}"]`);
|
||||
}
|
||||
while (!target.isSameNode(dialog.element)) {
|
||||
while (target !== dialog.element) {
|
||||
const type = target.dataset.action;
|
||||
if (target.classList.contains("item--full")) {
|
||||
target.parentElement.querySelector(".item--focus").classList.remove("item--focus");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue