craft-neo icon indicating copy to clipboard operation
craft-neo copied to clipboard

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

Open TheFunkyMonk opened this issue 5 months ago • 1 comments

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 avatar Sep 20 '24 16:09 TheFunkyMonk