fix: category search input cannot be cleared #118

Merged
jastornig merged 1 commit from fix-category-search-on-home into main 2024-01-05 22:47:20 +01:00

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!}