@@ -28,7 +28,7 @@ import { caseSensitive } from '@igniteui/material-icons-extended';
28
28
import { noop , Subject } from 'rxjs' ;
29
29
import { takeUntil } from 'rxjs/operators' ;
30
30
import { 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' ;
32
32
import { SortingDirection } from '../data-operations/sorting-strategy' ;
33
33
import { IForOfState , IgxForOfDirective } from '../directives/for-of/for_of.directive' ;
34
34
import { IgxIconService } from '../icon/icon.service' ;
@@ -46,6 +46,7 @@ import { ComboResourceStringsEN, IComboResourceStrings } from '../core/i18n/comb
46
46
import { getCurrentResourceStrings } from '../core/i18n/resources' ;
47
47
import { DOCUMENT } from '@angular/common' ;
48
48
import { Size } from '../grids/common/enums' ;
49
+ import { isEqual } from 'lodash-es' ;
49
50
50
51
export const IGX_COMBO_COMPONENT = /*@__PURE__ */ new InjectionToken < IgxComboBase > ( 'IgxComboComponentToken' ) ;
51
52
@@ -1288,9 +1289,7 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh
1288
1289
}
1289
1290
1290
1291
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 ) ) ;
1294
1293
1295
1294
return item !== undefined ? item : { [ this . valueKey ] : key } ;
1296
1295
} ) ;
0 commit comments