Skip to content

[5.x]: After saving a nested element within a Matrix/Addresses field in card view, subsequent provisional drafts are not reflected in Live Preview #16626

@thupsi

Description

@thupsi

What happened?

Description

When previewing an entry, the user can make changes in a nested matrix entry with card view enabled, and those changes are reflected in Live Preview, BUT if those changes are saved (in the matrix entry), thus creating an owner draft, any subsequent changes are NOT reflected in Live Preview.

That's rather long-winded, so let me break it down:

Steps to reproduce

  1. Open the Live Preview of an entry that has a Matrix Field with card view.
  2. Make changes in a nested Matrix entry of said field. Don't hit save.
  3. Observe that those changes are reflected in the preview.
  4. Now save the Matrix entry that has the changes.
  5. Observe that a draft of the owner has been created with those changes.
  6. Now make some more changes in the same matrix entry. Don't hit save.
  7. This time, the changes are NOT reflected in the preview.

Expected behavior

When editing a matrix entry with card view, all changes should be immediately reflected in the preview.

Actual behavior

Once the entry has saved changes, further changes are not visible in the preview.

Craft CMS version

5.6.4

PHP version

No response

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions