@@ -28,7 +28,7 @@ import { caseSensitive } from '@igniteui/material-icons-extended';
2828import { noop , Subject } from 'rxjs' ;
2929import { takeUntil } from 'rxjs/operators' ;
3030import { IgxSelectionAPIService } from '../core/selection' ;
31- import { CancelableBrowserEventArgs , cloneArray , IBaseCancelableBrowserEventArgs , IBaseEventArgs , isNaNvalue , rem } from '../core/utils' ;
31+ import { CancelableBrowserEventArgs , cloneArray , IBaseCancelableBrowserEventArgs , IBaseEventArgs , rem } from '../core/utils' ;
3232import { SortingDirection } from '../data-operations/sorting-strategy' ;
3333import { IForOfState , IgxForOfDirective } from '../directives/for-of/for_of.directive' ;
3434import { IgxIconService } from '../icon/icon.service' ;
@@ -46,6 +46,7 @@ import { ComboResourceStringsEN, IComboResourceStrings } from '../core/i18n/comb
4646import { getCurrentResourceStrings } from '../core/i18n/resources' ;
4747import { DOCUMENT } from '@angular/common' ;
4848import { Size } from '../grids/common/enums' ;
49+ import { isEqual } from 'lodash-es' ;
4950
5051export const IGX_COMBO_COMPONENT = /*@__PURE__ */ new InjectionToken < IgxComboBase > ( 'IgxComboComponentToken' ) ;
5152
@@ -1288,9 +1289,7 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh
12881289 }
12891290
12901291 return keys . map ( key => {
1291- const item = isNaNvalue ( key )
1292- ? this . data . find ( entry => isNaNvalue ( entry [ this . valueKey ] ) )
1293- : this . data . find ( entry => entry [ this . valueKey ] === key ) ;
1292+ const item = this . data . find ( entry => isEqual ( entry [ this . valueKey ] , key ) ) ;
12941293
12951294 return item !== undefined ? item : { [ this . valueKey ] : key } ;
12961295 } ) ;
0 commit comments