mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 search asset
This commit is contained in:
parent
09ed2b15ed
commit
79962bd6e2
2 changed files with 4 additions and 10 deletions
|
|
@ -58,7 +58,10 @@ export class Menus {
|
|||
}
|
||||
|
||||
if (dataType === "search-item") {
|
||||
initSearchMenu(target.getAttribute("data-node-id")).popup({x: event.clientX, y: event.clientY});
|
||||
const nodeId = target.getAttribute("data-node-id");
|
||||
if (nodeId) {
|
||||
initSearchMenu(nodeId).popup({x: event.clientX, y: event.clientY});
|
||||
}
|
||||
event.stopPropagation();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue