File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/components/combo-select/combo-currency-select/combo-select-dropdown Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,23 @@ const ComboSelectDropdown = ({
43
43
const filterOptionsByEntry = ( opts , entry ) => {
44
44
let filteredList = [ ] ;
45
45
if ( entry ?. length && ! hasChildren ) {
46
- filteredList = opts . filter ( opt => opt [ optionLabelKey ] . toUpperCase ( ) . includes ( entry . toUpperCase ( ) ) ) ;
46
+ filteredList = opts . filter ( opt =>
47
+ opt [ optionLabelKey ]
48
+ . toString ( )
49
+ . toUpperCase ( )
50
+ . includes ( entry . toUpperCase ( ) )
51
+ ) ;
47
52
setNoResults ( filteredList . length === 0 ) ;
48
53
} else if ( hasChildren ) {
49
54
let sectionResults ;
50
55
let allResultsLength = 0 ;
51
56
opts . forEach ( section => {
52
- sectionResults = section . children . filter ( opt => opt [ optionLabelKey ] . toUpperCase ( ) . includes ( entry . toUpperCase ( ) ) ) ;
57
+ sectionResults = section . children . filter ( opt =>
58
+ opt [ optionLabelKey ]
59
+ . toString ( )
60
+ . toUpperCase ( )
61
+ . includes ( entry . toUpperCase ( ) )
62
+ ) ;
53
63
allResultsLength += sectionResults . length ;
54
64
filteredList . push ( { label : section . label , children : sectionResults } ) ;
55
65
} ) ;
You can’t perform that action at this time.
0 commit comments