Merge branch 'fix-category-search-on-home' into 'main'

fix: category search input cannot be cleared

See merge request thschleicher/interaktive-systeme!50
This commit is contained in:
jastornig 2024-01-05 21:47:19 +00:00
commit ea64b54de2

View file

@ -49,7 +49,7 @@ const CategorySelectorModal: React.FC<CategorySelectorModalProps> = (props : Cat
<View>
<Text style={[styles.heading, {color: colors.primaryText}]}>{selectMulitple ? "Categories" : "Category"}</Text>
</View>
<TextInputBar placeholder='TypeToSearch' onChangeText={handleSearchText} style={{marginBottom: 10}}></TextInputBar>
<TextInputBar placeholder='TypeToSearch' value={searchtext} onChangeText={handleSearchText} style={{marginBottom: 10}}></TextInputBar>
<FlatList
data={filteredCategories}
keyExtractor={(item) => item.guid!}