Skip to content

[select] Dropdown closes immediately when component is opened programmatically #8398

Closed
@vursen

Description

@vursen

Description

When opening the select component using the opened property or attribute, the dropdown opens and immediately closes:

Screen.Recording.2024-12-25.at.10.37.09.mov

Expected outcome

It should be possible to control the select's opened state with the opened property or attribute.

Minimal reproducible example

<script type="module">
  import '@vaadin/select';
</script>

<vaadin-select></vaadin-select>

<script>
  const select = document.querySelector('vaadin-select');
  select.items = [
    { label: 'Option 1', value: 'option-1' },
    { label: 'Option 2', value: 'option-2' },
  ];
  select.opened = true;
</script>

Environment

Vaadin version(s): 24.7 and earlier
OS: Mac OS

Browsers

Issue is not browser related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions