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

[Bug]: Dropdown doesn't display filtered values #3043

Open
poweribo opened this issue Jan 25, 2025 · 0 comments
Open

[Bug]: Dropdown doesn't display filtered values #3043

poweribo opened this issue Jan 25, 2025 · 0 comments
Labels
bug Something isn't working to-review Evidence team to review

Comments

@poweribo
Copy link

Describe the bug

I have two dropdowns and I'm recreating the behavior of Dimension Grid.
Desired behavior is, depending on what type I've selected, it should also change the value of sub_types dropdown.
The sub_types doesnt refresh the list properly. you'll have to click "clear all" for the new values to show up.

Steps to Reproduce

Sample code:

sql type_list
  select type, sub_type
  from pos_table
  group by type, sub_type


sql types
  select distinct type
  from ${type_list}


sql sub_types
  select distinct sub_type
  from ${type_list}
  where type in ${inputs.types.value}    
<Dropdown 
    data={types} 
    name=types
    value=type
    multiple=true     
    selectAllByDefault=true
/>

<Dropdown 
    data={sub_types} 
    name=sub_types
    value=sub_type
    multiple=true     
    selectAllByDefault=true
/>

Logs

System Info

Using versions:
    "@evidence-dev/core-components": "^5.1.0",
    "@evidence-dev/evidence": "^40.0.6",

Severity

serious, but I can work around it

Additional Information, or Workarounds

No response

@poweribo poweribo added bug Something isn't working to-review Evidence team to review labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to-review Evidence team to review
Projects
None yet
Development

No branches or pull requests

1 participant