Skip to content

bug(Autocomplete): Incorrect overlay in Dialog #30254

Closed
@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

No response

Description

  • Create Autocomplete in dialog with scroll
  • Open Autocomplete options
  • Scroll down
  • Autocomplete options above the dialog, because overlay for Autocomplete creates in the same way of dialog. So overlay for Autocomplete is wrong. Options should be inside Dialog.

Image

Reproduction

StackBlitz link:
Steps to reproduce:

  1. Create Autocomplete in dialog with scroll
  2. Open Autocomplete options
  3. Scroll down
  4. Autocomplete options above the dialog, because overlay for Autocomplete creates in the same way of dialog.

Expected Behavior

Autocomplete options should be inside the dialog

Actual Behavior

Autocomplete options above the dialog

Environment

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

To be precise:

"@angular/cdk": "^18.2.14",
"@angular/common": "^18.2.13",
"@angular/material": "^18.2.14",

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions