Skip to content

bug(mat-autocomplete): missing selection indicator (highlight + check icon) when using mat-autocomplete with mat-optgroup #29189

Open

Description

@poveu

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

14

Description

v15 introduced an indicator of the currently selected item:
image
However, this indicator is missing when, instead of flat mat-options, we're using mat-optgroup with mat-options:
image

Reproduction

The repro is even in the official documentation of any version higher than v14:
https://v15.material.angular.io/components/autocomplete/examples

Expected Behavior

We should see the indicator of a selected item even when we're using mat-optgroup

Actual Behavior

Missing selection indicator when using mat-autocomplete with mat-optgroup

Environment

  • Angular: v15+
  • CDK/Material: v15+

Activity

  1. added
    needs triage
    on Jun 4, 2024
  2. added
    needs triage
    and removed
    needs triage
    on Jun 5, 2024
  3. amysorto commented on Jun 5, 2024

    @amysorto
    Contributor

    Tested in v18, also still occurs

  4. added
    Accessibility
    P4
    and removed
    needs triage
    on Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityP4area: material/autocomplete

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions