This commit is contained in:
Jhan Mario Bolívar Peña 2025-05-01 13:24:22 +02:00 committed by GitHub
commit 7e77a818e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9335,6 +9335,25 @@ class App extends React.Component<AppProps, AppState> {
},
{ informMutation: false, isDragging: 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) => {