Skip to content

Commit 402fa1e

Browse files
mohas22mohas22
authored andcommitted
updated function name in autocomplete
1 parent aa71f8f commit 402fa1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/angular-sdk-components/src/lib/_components/field/auto-complete/auto-complete.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class AutoCompleteComponent implements OnInit, OnDestroy {
112112
);
113113
}
114114

115-
set options(options: IOption[]) {
115+
setOptions(options: IOption[]) {
116116
this.options$ = options;
117117
const index = this.options$?.findIndex(element => element.key === this.configProps$.value);
118118
this.value$ = index > -1 ? this.options$[index].value : this.configProps$.value;
@@ -204,7 +204,7 @@ export class AutoCompleteComponent implements OnInit, OnDestroy {
204204
this.componentReference = this.pConn$.getStateProps().value;
205205
if (this.listType === 'associated') {
206206
const optionsList = this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject('')); // 1st arg empty string until typedef marked correctly
207-
this.options = optionsList;
207+
this.setOptions(optionsList);
208208
}
209209

210210
if (!this.displayMode$ && this.listType !== 'associated') {
@@ -276,7 +276,7 @@ export class AutoCompleteComponent implements OnInit, OnDestroy {
276276
};
277277
optionsData.push(obj);
278278
});
279-
this.options = optionsData;
279+
this.setOptions(optionsData);
280280
}
281281

282282
flattenParameters(params = {}) {

0 commit comments

Comments
 (0)