diff --git a/packages/common/src/filters/selectFilter.ts b/packages/common/src/filters/selectFilter.ts index 8bb197775..b2ed7e21c 100644 --- a/packages/common/src/filters/selectFilter.ts +++ b/packages/common/src/filters/selectFilter.ts @@ -369,7 +369,7 @@ export class SelectFilter implements Filter { throw new Error(`[select-filter] A collection with value/label (or value/labelKey when using Locale) is required to populate the Select list, for example:: { filter: model: Filters.multipleSelect, collection: [ { value: '1', label: 'One' } ]')`); } const labelKey = (option.labelKey || option[this.labelName]) as string; - const selected = (searchTerms.findIndex((term) => term === option[this.valueName]) >= 0) ? 'selected' : ''; + const selected = (searchTerms.findIndex((term) => `${term}` === `${option[this.valueName]}`) >= 0) ? 'selected' : ''; const labelText = ((option.labelKey || this.enableTranslateLabel) && labelKey && isTranslateEnabled) ? (this.translaterService?.getCurrentLanguage && this.translaterService?.getCurrentLanguage() && this.translaterService.translate(labelKey) || '') : labelKey; let prefixText = option[this.labelPrefixName] || ''; let suffixText = option[this.labelSuffixName] || '';