|
|
|
@ -63,6 +63,9 @@ export class AutocompleteComponent extends StatefulControlComponent<State, Reado |
|
|
|
@Input() |
|
|
|
public displayProperty = ''; |
|
|
|
|
|
|
|
@Input() |
|
|
|
public valueProperty = ''; |
|
|
|
|
|
|
|
@Input() |
|
|
|
public placeholder = ''; |
|
|
|
|
|
|
|
@ -238,8 +241,8 @@ export class AutocompleteComponent extends StatefulControlComponent<State, Reado |
|
|
|
|
|
|
|
let value = selection; |
|
|
|
|
|
|
|
if (this.displayProperty) { |
|
|
|
value = selection[this.displayProperty]; |
|
|
|
if (this.valueProperty) { |
|
|
|
value = selection[this.valueProperty]; |
|
|
|
} |
|
|
|
|
|
|
|
this.callChange(value); |
|
|
|
|