Skip to content

Commit ac15702

Browse files
committed
fix(FilterListBox): filtering issue * 2
1 parent 4365f11 commit ac15702

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/fields/FilterListBox/FilterListBox.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,13 @@ export const FilterListBox = forwardRef(function FilterListBox<
894894
items={items as any}
895895
allValueProps={allValueProps}
896896
filter={filterFn}
897-
emptyLabel={emptyLabel !== undefined ? emptyLabel : 'No results found'}
897+
emptyLabel={
898+
searchValue.trim()
899+
? emptyLabel !== undefined
900+
? emptyLabel
901+
: 'No results found'
902+
: 'No items'
903+
}
898904
onSelectionChange={handleSelectionChange}
899905
onEscape={onEscape}
900906
onOptionClick={handleOptionClick}

0 commit comments

Comments
 (0)