PickList: check mark does not appear when value set in code
alamote opened this issue · comments
Sergey Lyskov commented
When I set default value of PickList, it does not show check mark as if I would manually select a value. Is there a way to solve this problem?
component.html
<ngl-picklist nglFormControl
filter="label"
[data]="data"
[(nglPick)]="selected"
[(open)]="open"
[nglPickMultiple]="multiple">
<span class="slds-truncate">{{getPickLabel()}}</span>
<ng-template nglPicklistItem let-item>{{item.label}}</ng-template>
</ngl-picklist>
component.ts
selected = {label: 'Tier 1', value: 1};
data = [
{label: 'All tiers', value: null},
{label: 'Tier 1', value: 1},
{label: 'Tier 2', value: 2},
{label: 'Tier 3', value: 3}
]
Tasos Bekos commented
There has been a new release v4.0. Check if your issue is still valid and please use the Stackblitz button to reproduce it and helps us track it.