mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix: groupIds update for boundText element
This commit is contained in:
parent
debf2ad608
commit
618199cc5c
1 changed files with 16 additions and 0 deletions
|
@ -9230,6 +9230,22 @@ class App extends React.Component<AppProps, AppState> {
|
|||
},
|
||||
false,
|
||||
);
|
||||
|
||||
const boundText = getBoundTextElement(element, this.scene.getNonDeletedElementsMap())
|
||||
|
||||
if (boundText) {
|
||||
const boundTextIndex = boundText.groupIds.indexOf(
|
||||
this.state.editingGroupId!,
|
||||
);
|
||||
|
||||
mutateElement(
|
||||
boundText,
|
||||
{
|
||||
groupIds: boundText.groupIds.slice(0, boundTextIndex),
|
||||
},
|
||||
false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
nextElements.forEach((element) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue