mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: copy bound text style when copying element having bound text (#5305)
* fix: copy bound text style when copying element having bound text * fix * fix tests
This commit is contained in:
parent
6196fba286
commit
84b47a2ed5
3 changed files with 51 additions and 21 deletions
|
@ -48,7 +48,7 @@ describe("actionStyles", () => {
|
|||
Keyboard.withModifierKeys({ ctrl: true, alt: true }, () => {
|
||||
Keyboard.codeDown(CODES.C);
|
||||
});
|
||||
const secondRect = JSON.parse(copiedStyles);
|
||||
const secondRect = JSON.parse(copiedStyles)[0];
|
||||
expect(secondRect.id).toBe(h.elements[1].id);
|
||||
|
||||
mouse.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue