Skip to content

IfThenElse showing property behind "IF", even when condition is not true #4319

@peterbartels

Description

@peterbartels

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

When making a conditional property using the IfThenElse in an allOf and this property is not set (and also doesn;t validate the IF condition), it's still being shown.

In the minimal playground example, the "food" item is behind an if when animal: true - but the item is still shown when no animal is chosen by default

Expected Behavior

A property behind IF should not be shown by default

Steps To Reproduce

See this playground link

Environment

No response

Anything else?

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