Skip to content

[5.5.0]: Live preview with Matrix Blocks #16094

@rgauthier4c4

Description

@rgauthier4c4

What happened?

Description

I had this issue (#15713) with the live preview and I've update my project to the version 5.5.0 to test the new features.

Changing the status of a block refresh the live preview (without a draft). I understand that the status is linked to the entry and not the draft. But if I am editing an existing block, the live preview isn't using the drafted version of the content.

And i've see another bug in the same flow. If you create a Matrix entry and leave it as a draft and open the live preview. If you drag the order of another block, the drafted entry is appearing in the live preview, but you can't open the panel to edit it because the draft was saved and publish. If you close the preview, your block is now active.

Video to show the steps: https://gauthier-robin.com/uploads/craftcms/live-preview.mov

Steps to reproduce

Editing

  1. Edit an entry with a matrix
  2. Open the live preview
  3. Edit a field in a matrix block

Status

  1. Create a matrix entry and leave it as a draft
  2. Open the live preview
  3. Drag the position of another block
  4. Try to open the draft block (Broken)
  5. Close the preview and check the status of the draft block.

Expected behavior

The preview is updated with the drafted content.

Actual behavior

Nothing is updated.

Craft CMS version

5.5.0

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions