Skip to content

[5.x]: Changes in matrix blocks in card view are not reflected in the live preview #16295

@MoritzLost

Description

@MoritzLost

What happened?

Description

Very similar issue to craftcms/ckeditor#331, but with Matrix fields.

Matrix fields set to cards view will not show any changes in the live preview until you click on save in the popup. Here's a screen recording:

live-preview-matrix.mov

Again, this is understandable from a technical perspective, but is broken from an author's point of view.

It's even worse when you have nested matrix fields set to cards view. In this case, you need to click two levels deep and save two levels of popups every time you want to actually see your changes.

Steps to reproduce

See above.

Expected behavior

For the live preview to be useful, it needs to take all changes into account, including draft changes in a popup. For an author, it's not reasonable behaviour that some changes are not immediately reflected in the live preview, regardless of the underlying technical limitations.

Actual behavior

The live preview doesn't take into accounts drafts in nested entries, despite being intended to show an author their current draft on the live site.

Craft CMS version

5.5.5

PHP version

8.3

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