Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Conditional fields within a matrix block layout don't function correctly #14533

Closed
brionwolf opened this issue Mar 5, 2024 · 4 comments
Labels

Comments

@brionwolf
Copy link

What happened?

Description

Conditional fields within a matrix block layout don't trigger their conditional logic unless the page is manually reloaded or the block is accessed from "Open in a new tab"

Steps to reproduce

  1. Create an Entry Type with conditional fields (ie: A plain text field that only appears if a dropdown field is set to "show").
  2. Assign the entry type to a matrix field, and assign the matrix field to an entry type of a section.
  3. Create a new entry for that section, and attempt to add a block in the matrix field.
  4. Attempt to trigger the conditional

Expected behavior

  • On auto-save, the conditionally visible field is either revealed or hidden based on the conditional logic.

Actual behavior

  • Nothing happens.

marketing-system-matrix-field-conditionals

Additional Notes

Craft CMS version

Craft Pro 5.0.0-beta.5

PHP version

8.3.1

Operating system and version

MacOS Sonoma 14.3.1 (23D60)

Database type and version

MySQL 8.2.0

Image driver and version

GD 8.3.1

Installed plugins and versions

  • CKEditor | 4.0.0-beta.7
@brionwolf brionwolf added the bug label Mar 5, 2024
@i-just
Copy link
Contributor

i-just commented Mar 5, 2024

Hi, thanks for reaching out! Sounds like this might be a duplicate of #14512 (fixed for the next release).

@brandonkelly
Copy link
Member

Craft 5.0.0-beta.6 is out with the fix for #14512. @brionwolf can you please update and see if that solves this for you as well?

@brionwolf
Copy link
Author

@brandonkelly @i-just // Can confirm, issue resolved in Craft 5.0.0-beta.6. Thanks for the work on this! Sorry for the duplicate issue. Closing! ( ̄- ̄)ゞ

marketing-system-matrix-field-conditionals-fixed

@brandonkelly
Copy link
Member

Thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants