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

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

Open
liubou-masiuk opened this issue Dec 22, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@liubou-masiuk
Copy link
Collaborator

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

@liubou-masiuk liubou-masiuk added the bug Something isn't working label Dec 22, 2023
@liubou-masiuk liubou-masiuk added this to To do in Development tasks via automation Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants