FormBuilder filter fails on some fields
Overview
On some fields, a FormBuilder filter works when a value is entered but deleting the filter value does not show the full listing.
Reproduction steps
- In SearchKit, create a search of CaseTypes
- Display the ID & Title
- Create a table display - default settings
- Create a FormBuilder form
- Add Case Type Title as a filter
- Add route, name, save.
- View page
- Should see listing of case types
- In filter box, type 'sup' - should filter correctly to show Housing Support
- then delete 'sup' from the filter
Current behaviour
Does not show all results. Angular error in browser 'val is undefined'
Expected behaviour
It should go back to showing all results
Environment information
- CiviCRM: Master
Comments
Verified on dmaster.
This is only on some fields. Eg doing the same for Case instead of Case Type works as expected.