mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Dedupe boundElement ids when container duplicated with alt+drag (#5938)
* Dedupe boundElement ids when container duplicated with alt+drag and add spec * set to null by default
This commit is contained in:
parent
66bbfda460
commit
a86224c797
3 changed files with 41 additions and 1 deletions
|
@ -111,7 +111,7 @@ export const bindTextToShapeAfterDuplication = (
|
|||
const newContainer = sceneElementMap.get(newElementId);
|
||||
if (newContainer) {
|
||||
mutateElement(newContainer, {
|
||||
boundElements: element.boundElements?.concat({
|
||||
boundElements: (newContainer.boundElements || []).concat({
|
||||
type: "text",
|
||||
id: newTextElementId,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue