Skip to content

[list-box] Reset the focused item when connected (or disconnected) from the DOM #924

Open
@jouni

Description

@jouni

When the list box is connected to the DOM, we should reset the focused item either to the first selected item or, if there is no selected item, to the first item in the list.

This would at least help when used inside vaadin-context-menu, where the common case is that when the menu opens the focus should be on the first item in the menu.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions