We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4365f11 commit ac15702Copy full SHA for ac15702
src/components/fields/FilterListBox/FilterListBox.tsx
@@ -894,7 +894,13 @@ export const FilterListBox = forwardRef(function FilterListBox<
894
items={items as any}
895
allValueProps={allValueProps}
896
filter={filterFn}
897
- emptyLabel={emptyLabel !== undefined ? emptyLabel : 'No results found'}
+ emptyLabel={
898
+ searchValue.trim()
899
+ ? emptyLabel !== undefined
900
+ ? emptyLabel
901
+ : 'No results found'
902
+ : 'No items'
903
+ }
904
onSelectionChange={handleSelectionChange}
905
onEscape={onEscape}
906
onOptionClick={handleOptionClick}
0 commit comments