fix: bind text to correct container when nested (#5307)

* fix: bind text to correct container when nested

* fix tests
This commit is contained in:
Aakansha Doshi
2022-06-15 16:09:12 +05:30
committed by GitHub
parent ddf088e428
commit ec35d5db51
2 changed files with 7 additions and 3 deletions

View File

@ -115,6 +115,9 @@ describe("textWysiwyg", () => {
height: textSize,
containerId: container.id,
});
mutateElement(container, {
boundElements: [{ type: "text", id: text.id }],
});
h.elements = [container, text];