This commit is contained in:
Gowtham Selvaraj 2025-05-02 23:11:03 +08:00 committed by GitHub
commit 900fd47a14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9335,6 +9335,29 @@ class App extends React.Component<AppProps, AppState> {
},
{ informMutation: false, isDragging: false },
);
const boundTextElementToContainer = getBoundTextElement(
element,
this.scene.getNonDeletedElementsMap(),
);
if (
boundTextElementToContainer &&
this.state.editingGroupId &&
boundTextElementToContainer.groupIds.includes(
this.state.editingGroupId,
)
) {
mutateElement(
boundTextElementToContainer,
{
groupIds: boundTextElementToContainer.groupIds.filter(
(id) => id !== this.state.editingGroupId,
),
},
false,
);
}
}
nextElements.forEach((element) => {