Skip to content

Dependent property not hidden on first load inside a Block List block (only works after toggling the control) #53

Description

@eric-bitlab

When a Conditional Displayers editor (radio) and its dependent property are inside an Element Type used by a Block List, the show/hide logic does not run on initial load. The dependent property stays visible when it should be hidden. It only starts behaving correctly after I manually change the controlling property once (e.g. click another radio button), which fires the change event and triggers the evaluation.

Steps to reproduce

Create the property with Conditional Displayers control (radio button) inside the doc type and edit the controlling property in the "should hide" state with the property of the block in a Block List data type.

Expected behavior
On load, the dependent property should already be hidden according to the controlling property's stored value without any user interaction.
Actual behavior
The dependent property is visible on first load. It only becomes hidden after the controlling property emits a change event (toggling it once).

Environment
Umbraco version: [v17]
Conditional Displayers version: [16.7.0]
Block List editing mode: [inline]
Browser: [Microsoft Edge]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions