Fix: groupIds update for boundText element

This commit is contained in:
jhanma17 2025-04-21 18:33:23 -05:00
parent debf2ad608
commit 618199cc5c

View file

@ -9230,6 +9230,22 @@ class App extends React.Component<AppProps, AppState> {
}, },
false, 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) => { nextElements.forEach((element) => {