mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix shift to end z-index error
This commit is contained in:
parent
4f218856c3
commit
b734f7cba8
16 changed files with 1650 additions and 1176 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue