Skip to content

Dropdown automatically closes when value is set #58

@hwmetzger

Description

@hwmetzger

I am using Angular 16 and this is my template...

<select2
[id]="'select2'"
name="select2"
class="form-control"
[data]="getSelect2Data(dbData$ | async)"
[value]="selectedValue"
(update)="updateSelect2($event)"
[styleMode]="'noStyle'"
(close)="onClose($event)"
/>

If selectedValue is null, I can click the dropdown and select an option as expected.
However, if selectedValue is not null, when I click the dropdown flashes then immediately triggers the close event and closes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingno test caseTry to pass a demo with the case of the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions