@@ -30,7 +30,7 @@ import { noop, Subject } from 'rxjs';
3030import { takeUntil } from 'rxjs/operators' ;
3131import { DisplayDensityBase , DisplayDensityToken , IDisplayDensityOptions } from '../core/density' ;
3232import { IgxSelectionAPIService } from '../core/selection' ;
33- import { CancelableBrowserEventArgs , cloneArray , IBaseCancelableBrowserEventArgs , IBaseEventArgs , isNaNvalue , rem } from '../core/utils' ;
33+ import { CancelableBrowserEventArgs , cloneArray , IBaseCancelableBrowserEventArgs , IBaseEventArgs , rem } from '../core/utils' ;
3434import { SortingDirection } from '../data-operations/sorting-strategy' ;
3535import { IForOfState , IgxForOfDirective } from '../directives/for-of/for_of.directive' ;
3636import { IgxIconService } from '../icon/icon.service' ;
@@ -46,6 +46,7 @@ import {
4646import { IComboItemAdditionEvent , IComboSearchInputEventArgs } from './public_api' ;
4747import { ComboResourceStringsEN , IComboResourceStrings } from '../core/i18n/combo-resources' ;
4848import { getCurrentResourceStrings } from '../core/i18n/resources' ;
49+ import { isEqual } from 'lodash-es' ;
4950
5051export const IGX_COMBO_COMPONENT = /*@__PURE__ */ new InjectionToken < IgxComboBase > ( 'IgxComboComponentToken' ) ;
5152
@@ -1282,9 +1283,7 @@ export abstract class IgxComboBaseDirective extends DisplayDensityBase implement
12821283 }
12831284
12841285 return keys . map ( key => {
1285- const item = isNaNvalue ( key )
1286- ? this . data . find ( entry => isNaNvalue ( entry [ this . valueKey ] ) )
1287- : this . data . find ( entry => entry [ this . valueKey ] === key ) ;
1286+ const item = this . data . find ( entry => isEqual ( entry [ this . valueKey ] , key ) ) ;
12881287
12891288 return item !== undefined ? item : { [ this . valueKey ] : key } ;
12901289 } ) ;
0 commit comments