Cascading Dropdown Filters do not clear out old values #15741
Labels
bug
Something isn't working
customer
Created by Linear-GitHub Sync
premium-enterprise
Feature for Enterprise plan
Checklist
Hosting
Describe the bug
Using an options picker and a filtered relationship picker, the filtered relationship picker holds on to old data.
[https://docs.budibase.com/docs/cascading-dropdown-filters](In this guide) we allow the user to select a country, and then show them cities based on the country they selected.
If the user selects a country, and then views the City picker, they will see cities in that country. When they select a different country, the City picker will show them cities in Country 1 and country 2. This behaviour can be repeated until the whole, unfiltered cities list is available in the City picker.
To Reproduce
Steps to reproduce the behavior:
It's fairly detailed, but if you want to skip to the Jam or straight to the export that's fine too
country_name
country.country_name EQUALS {{ [New Options Picker].Value }}
Expected behavior
Old cities should be cleared out when the country value is changed.
Screenshots
https://jam.dev/c/594222a9-9f17-4e82-9ffd-324bfe0841f5
App Export
filter forms-export-1741885360617.tar.gz
Desktop (please complete the following information):
Additional context
CSE raised this bug on behalf of enterprise customer. This issue is not present in the example hosted in the documentation, but downloading the app-export provided there will demonstrate the issue.
Using On-Change actions on the Country picker to Clear Form or Update Field Value - reset to default does not help
Network traffic shows that the correct items are being returned, but the component itself seems to hold onto the previous data as well.
The text was updated successfully, but these errors were encountered: