Skip to content

Copy/cut input values copying entire block/removing block #21440

@tomusborne

Description

@tomusborne

I'm getting some weirdness in WP 5.4 with and without the Gutenberg plugin when it comes to copying/pasting/cutting values.

The following video shows the process/how to reproduce. It was taken using Chrome on Windows.

https://www.screencast.com/t/5I006Nyxhd

I used Twenty-Twenty with no plugins other than Gutenberg activated and used the paragraph block as an example. I originally noticed the problem in my own blocks that I'm building, but it seems to happen with core blocks as well.

It seems to only affect number inputs.

  • Copying the value copies the entire block
  • Pasting doesn't seem to work (obviously), as it's trying to paste the entire block into the value
  • Cutting the value seems to delete the block entirely

It seems like Gutenberg is mistaking the selection for the block itself, even though the input is selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended

    Type

    No type
    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