accessibleItemActivation property

bool get accessibleItemActivation

Implementation

bool get accessibleItemActivation => _accessibleItemActivation;
  1. @Input()
set accessibleItemActivation (bool value)

Whether suggestions should be smartly activated / highlighted.

Defaults to true.

When true:

When false:

  • if selection isSingleSelect, don't auto activate / highlight any options.

  • if selection isMultiSelect, activate / highlight the first value when the suggestions list opens. Also, do not clear the active item when the search text changes.

Implementation

@Input()
set accessibleItemActivation(bool value) {
  _accessibleItemActivation = value;
  activeModel.activateFirstItemByDefault =
      (isSingleSelect && value) || (isMultiSelect && !value);
}