Skip to content

bl-select always defaults to focusFirstOption() #1258

@ascobie

Description

@ascobie

Select defined as:

<bl-select placeholder="Filter" [ngModel]="pickedFilter" (ngModelChange)="pickSelectedFilter($event)">
    <bl-option *ngFor="let filter of optionFilters;trackBy:trackFilterOption"
        [label]="filter.label"
        [value]="filter.value">
    </bl-option>
</bl-select>

ngModel has the correct default value, but the fist option is always picked, even though when i open the picker, the correct item based on the model is selected.

image

But opening the option list has the first item selected:

image

When it should be the one that matches the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions