setting formcontrol value when complex=true does not display selected item text.
jaxuk opened this issue · 2 comments
jaxuk commented
I'm using complex="true" with an object which has the properties id and name. But upon Setting the formcontrols value to the id of the object the text box remains blank. I would have expected it to contain the name value of the object. Is this by design?
<type-ahead formControlName="Author" [suggestions]="obs_authors$" placeholder="Select the author" class="form-control" complex="true" ></type-ahead>
meeroslav commented
Definitely not.
The problem might be in the fact that you use complex without the brackets. The DOM element should look like this:
<type-ahead formControl="Author" [suggestions]="obs_authors$"
placeholder="Select the author" class="form-control"
[complex]="true"></type-ahead>
Please let use know if this helps.
meeroslav commented
Closing due to inactivity