Skip to content

[5.10]: Pasted Matrix blocks not visually rendered until page refresh #18912

@frontedbe

Description

@frontedbe

What happened?

Description

When pasting Matrix blocks (via the field-level "Paste" action), the paste operation appears to succeed — the entry's modified indicator (blue left border) appears, confirming a change was registered — but the pasted blocks are not visually rendered in the field. After a page refresh, the pasted blocks appear correctly in the expected position.

This suggests the paste action writes the data to the draft state but fails to trigger the necessary DOM update to render the newly inserted blocks in the UI.

Screencast demonstrating the issue: screencast

Steps to reproduce

  1. Open an entry with a Matrix field containing one or more blocks.
  2. Copy one or more Matrix blocks.
  3. Use the "Paste" action on the Matrix field to paste the copied blocks.
  4. Observe the result.

Expected behavior

The pasted blocks should immediately appear in the Matrix field without requiring a page refresh.

Actual behavior

The paste action completes silently — the entry's modified indicator (blue left border) appears, confirming the data was changed — but the pasted blocks are not rendered in the UI. Refreshing the page reveals the blocks in the correct position.

Craft CMS version

5.10.1

Craft CMS version

5.10.1

PHP version

8.3.30

Operating system and version

macOS 26.3

Database type and version

MySQL 8.0.40

Image driver and version

Imagick 3.8.1 (ImageMagick 7.1.1-43)

Installed plugins and versions

  • Bugsnag 5.0.2
  • Child Me! 2.2.3
  • CKEditor 5.6.1
  • Craft MCP v1.2.2
  • Dumper 5.0.1
  • Formie 3.1.25
  • Google Maps 5.2.2
  • Hyper 2.3.7
  • Image toolbox 3.0.1
  • Matrix Field Preview 5.6.1
  • Navigation 3.0.22
  • SEO 5.1.21
  • Sprig 3.7.2
  • Vite 5.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    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