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

Conditional fields based on parent block values don't hide until draft save #946

Open
TheFunkyMonk opened this issue Sep 20, 2024 · 2 comments

Comments

@TheFunkyMonk
Copy link

Bug Description

When you have a child block with conditional fields set to show/hide based on a condition in the parent block (a dropdown value in this case), all fields in the child block show on block creation and the appropriate fields only hide after content is changed/a draft is saved.

2024-09-20 at 09 36 42

Steps to reproduce

  • Create a Neo block with a dropdown field
  • Create a child block with 1 block minimum and several fields set to hide based on the selection of the dropdown
  • Create an instance of the field

Expected behaviour

Fields with visibility conditions will show/hide on block creation

Neo version

5.2.6

Craft CMS version

5.4.4

What is the affected Neo field's propagation method?

No response

Does this issue involve templating, and if so, is eager-loading used?

This is not a templating issue

@TheFunkyMonk
Copy link
Author

Likely the same fix, but just an update that I noticed this behavior when cloning a block as well.

2024-09-23 at 12 55 32

@ttempleton ttempleton added bug report status: confirmed A bug report that has been reproduced by the maintainer(s), but has not yet been fixed and removed bug report status: new labels Sep 26, 2024
@ttempleton
Copy link
Contributor

Thanks for reporting this - fixed for the next release.

@ttempleton ttempleton added bug report status: fixed and removed bug report status: confirmed A bug report that has been reproduced by the maintainer(s), but has not yet been fixed labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants