You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, trying to use the tui-multi-select component, when the user enters a value into the input section to search for a new select option, the selected value is appearing as [Object object], which is fine, however, trying to get it to display as the specified key/value pair hasn't gone as planned.
Here is the html content:
<tui-multi-selectplaceholder="Select an MCC"
formControlName="benchmarkMCCs"
[(search)]="searchStr"
[valueContent]="mccListContent"
>
MCC Benchmarks
<tui-data-list-wrapper*tuiDataListtuiMultiSelectGroup[items]="filteredItems()"
[itemContent]="mccTemplate"
></tui-data-list-wrapper></tui-multi-select><ng-template#mccListContentlet-list><ng-container*ngFor="let item of list"><tui-tag[removable]="true"
[value]="item.value"
></tui-tag></ng-container></ng-template>
This is what happens when the user goes to search for a new value with an item selected:
The mccs object is a simple {key: string|number, value: string}[] - Obviously this is an issue with the fact that the formControl itself is selecting the entire object, however, do you guys provide any in-suite solution for a case like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys, trying to use the tui-multi-select component, when the user enters a value into the input section to search for a new select option, the selected value is appearing as [Object object], which is fine, however, trying to get it to display as the specified key/value pair hasn't gone as planned.
Here is the html content:
On the ts side:
This is what happens when the user goes to search for a new value with an item selected:
The
mccs
object is a simple{key: string|number, value: string}[]
- Obviously this is an issue with the fact that the formControl itself is selecting the entire object, however, do you guys provide any in-suite solution for a case like this?Beta Was this translation helpful? Give feedback.
All reactions