fix shift to end z-index error

This commit is contained in:
Ryan Di 2023-12-06 16:56:55 +08:00
parent 4f218856c3
commit b734f7cba8
16 changed files with 1650 additions and 1176 deletions

View file

@ -379,9 +379,7 @@ const shiftElementsToEnd = (
}
}
const targetElements = Object.values(targetElementsMap).map((element) => {
return bumpVersion(element);
});
const targetElements = Array.from(targetElementsMap.values());
const leadingElements = elements.slice(0, leadingIndex);
const trailingElements = elements.slice(trailingIndex + 1);