Skip to content

bug(mat-autocomplete): Autocomplete options are moving with dialog scrollbar #30416

Open
@lopatnov

Description

@lopatnov

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

See: #30254, it was present in 18 version.

Description

Demo: https://github.com/lopatnov/autocomplete-issue

Reproduction

StackBlitz link: I don't use StackBlitz, don't know how to upload demo here.
Steps to reproduce:

  1. Open dialog with some elements, to have scroll in the dialog
  2. Open Autocomplete items
  3. Scroll down dialog scroll and you will see issue

Expected Behavior

Options of Autocomplete should stay below autocomplete, as it was opened. They don't need to move with dialog scrollbar.

Actual Behavior

When dialog scrollbar moves, then autocomplete options also moves.

Environment

  • Angular: 19.1.0
  • CDK/Material: 19.1.1
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/dialogarea: material/autocomplete

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions