Skip to content

Fix unstable block cut process #1489

Description

@hata6502

Currently, the block cut process (ctrl + x) has a weakness of maintainability.
If use await in async function BlockSelection.copySelectedBlocks, cut process doesn't copy block data.
Because BlockManager.removeSelectedBlocks() is proceeded before BlockSelection.copySelectedBlocks.
This is the unstable async function usage.

Reproduction code: src/components/modules/blockSelection.ts

  public async copySelectedBlocks(e: ClipboardEvent): Promise<void> {
    await 1;

Please check: #1485

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions