mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge b340af8b61
into 6e655cdb24
This commit is contained in:
commit
900fd47a14
1 changed files with 23 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue