Skip to content

Commit 0cd0fe3

Browse files
committed
fix: edcarroll#333 Call lookup function with initial values even if valueField is not set.
1 parent 61ec628 commit 0cd0fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/select/components/multi-select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class SuiMultiSelect<T, U> extends SuiSelectBase<T, U> implements ICustom
198198
.filter(v => v != undefined);
199199
}
200200
if (values.length > 0 && this.selectedOptions.length === 0) {
201-
if (this.valueField && this.searchService.hasItemLookup) {
201+
if (this.searchService.hasItemLookup) {
202202
// If the search service has a selected lookup function, make use of that to load the initial values.
203203
this.searchService
204204
.initialLookup(values)

0 commit comments

Comments
 (0)