mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
91ee1ccf0b
commit
9cb2d7f0f3
1 changed files with 2 additions and 1 deletions
|
|
@ -255,7 +255,8 @@ export const duplicateBlock = (nodeElements: Element[], protyle: IProtyle) => {
|
|||
const doOperations: IOperation[] = [];
|
||||
const undoOperations: IOperation[] = [];
|
||||
let starIndex: number;
|
||||
if (nodeElements[nodeElements.length - 1].getAttribute("data-subtype") === "o") {
|
||||
if (nodeElements[nodeElements.length - 1].classList.contains("li") &&
|
||||
nodeElements[nodeElements.length - 1].getAttribute("data-subtype") === "o") {
|
||||
starIndex = parseInt(nodeElements[nodeElements.length - 1].getAttribute("data-marker"), 10);
|
||||
}
|
||||
nodeElements.reverse().forEach((item, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue