mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
8a6922b56f
commit
ddec6c0820
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
const menu = new Menu();
|
||||
const rowElements = blockElement.querySelectorAll(".av__row--select:not(.av__row--header), .av__gallery-item--select");
|
||||
const keyCellElement = rowElements[0].querySelector('.av__cell[data-dtype="block"]') as HTMLElement;
|
||||
const ids = Array.from(rowElements).map(item => item.getAttribute("data-id"));
|
||||
const ids = Array.from(rowElements).map(item => item.querySelector('[data-dtype="block"] .av__celltext').getAttribute("data-id"));
|
||||
if (rowElements.length === 1 && keyCellElement.getAttribute("data-detached") !== "true") {
|
||||
/// #if !MOBILE
|
||||
const blockId = ids[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue