mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: ungrouped bound text when duplicating element from a group outside to frame
This commit is contained in:
parent
dff69e9191
commit
b340af8b61
1 changed files with 23 additions and 0 deletions
|
@ -9262,6 +9262,29 @@ class App extends React.Component<AppProps, AppState> {
|
|||
},
|
||||
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