activateFirstItemByDefault property

bool activateFirstItemByDefault
getter/setter pair

Whether the first list item should activate whenever the changes.

Default is true. This value is disregarded if a previously active item remains in the new list.

Auto-activating the first result may slightly speed up keyboard nav for users. It can also be detremental to a11y in others. For example, to avoid screen reader issues, multi-select comboboxes toggle list item selection via

Implementation

bool activateFirstItemByDefault = true;