diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index ddb071981..d6f6bdf6e 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -9335,6 +9335,25 @@ class App extends React.Component { }, { 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) => {