Skip to content

Commit

Permalink
fix: first block dragged from flyout will have same id (#7788)
Browse files Browse the repository at this point in the history
(cherry picked from commit 49f65a2)
  • Loading branch information
maribethb committed Jan 17, 2024
1 parent dccedbf commit 960b89e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/flyout_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,7 @@ export abstract class Flyout
}

// Clone the block.
// TODO(#7432): Add a saveIds parameter to `save`.
const json = blocks.save(oldBlock, {saveIds: false}) as blocks.State;
const json = blocks.save(oldBlock) as blocks.State;
// Normallly this resizes leading to weird jumps. Save it for terminateDrag.
targetWorkspace.setResizesEnabled(false);
const block = blocks.append(json, targetWorkspace) as BlockSvg;
Expand Down

0 comments on commit 960b89e

Please sign in to comment.