From 0cd0fe303262627e3514e0ff869ebb647f8078e7 Mon Sep 17 00:00:00 2001 From: Jan Papenbrock Date: Thu, 25 Oct 2018 21:43:14 +0200 Subject: [PATCH] fix: #333 Call lookup function with initial values even if valueField is not set. --- src/modules/select/components/multi-select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/select/components/multi-select.ts b/src/modules/select/components/multi-select.ts index 0bb77e47b..ad8874785 100644 --- a/src/modules/select/components/multi-select.ts +++ b/src/modules/select/components/multi-select.ts @@ -198,7 +198,7 @@ export class SuiMultiSelect extends SuiSelectBase implements ICustom .filter(v => v != undefined); } if (values.length > 0 && this.selectedOptions.length === 0) { - if (this.valueField && this.searchService.hasItemLookup) { + if (this.searchService.hasItemLookup) { // If the search service has a selected lookup function, make use of that to load the initial values. this.searchService .initialLookup(values)