This commit is contained in:
parent
68c3f8091c
commit
517c784b63
1 changed files with 1 additions and 1 deletions
|
@ -890,7 +890,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
// 行内拖拽
|
||||
const doOperations: IOperation[] = [];
|
||||
const undoOperations: IOperation[] = [];
|
||||
const undoPreviousId = blockElement.querySelector(`[data-id="${selectedIds[0]}"]`).previousElementSibling.getAttribute("data-id") || "";
|
||||
const undoPreviousId = blockElement.querySelector(`.av__row[data-id="${selectedIds[0]}"]`).previousElementSibling.getAttribute("data-id") || "";
|
||||
selectedIds.reverse().forEach(item => {
|
||||
if (previousID !== item && undoPreviousId !== previousID) {
|
||||
doOperations.push({
|
||||
|
|
Loading…
Add table
Reference in a new issue