Open chazzini opened 2 months ago
from code in MultipleSelectComponent onChangeText={(val) => { let result = data.filter((item: L1Keys) => { val.toLowerCase(); let row = item.value.toLowerCase() return row.search(val.toLowerCase()) > -1; }); setFilteredData(result) }}
Should be if(row.search(val.toLowerCase()) > -1) return item; not return row.search(val.toLowerCase()) > -1;
After or before selecting my options, I input "hearts" as a search term in my working multipleselectlist, I don't get any errors but the search is not working