Skip to content

[EAK-501] DependsOn: Checkbox without a description hides the parent widget instead of itself #501

@liubou-masiuk

Description

@liubou-masiuk

Preconditions:

  • there is a checkbox without a description inside a multifield
  • the checkboxes' visibility is managed by dependsOn

Steps to reproduce:

  1. Open the dialog
  2. Switch the switcher that hides the checkbox

Actual result: The whole multifield is hidden
Expected result: Only the checkbox is hidden

Code Example:

    @DialogField (label = "Multifield")
    @MultiField
    private List<MultifieldItem> items;

    public static class MultifieldItem{
        @DialogField(label = "Hide the checkbox?")
        @Switch(checked = true)
        @DependsOnRef
        private String hide;

        @DialogField(label = "Checkbox")
        @Checkbox
        @DependsOn(query = "@hide(coral-multifield-item)")
        private boolean checkbox;
    }

Note: The issue might also be reproducible for other widgets that have an optional wrapper that depends on the presence of the description. Multifield is one such example, there may be more

Metadata

Metadata

Assignees

Labels

DependsOnDependsOn-related logicbugSomething isn't working

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions