Skip to content

[5.0.0-alpha]: Conditionals don't work when applying in a matrix block #13772

@michtio

Description

@michtio

What happened?

Description

When conditionals are added to entry types used in a Matrix block, toggling a lightswitch for example doesn't get applied straight away.

Steps to reproduce

  1. Add a conditional (lightswitch) to an entry type to hide/show a field
  2. Add that entry type to the Matrix
  3. When going into the entry and toggling the lightswitch, the value gets saved but no action happens on the field with the assigned conditional.
  4. Click on entries to get out of the Editor
  5. Click on the entry again to go into the Editor
  6. The conditional has been applied.

Expected behavior

When switching around a lightswitch it should reflect the conditional straight away.

Craft CMS version

5.0.0-alpha

PHP version

8.2

Operating system and version

No response

Database type and version

MySQL 8

Image driver and version

No response

Installed plugins and versions

No response

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