Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(Autocomplete): Incorrect overlay in Dialog #30254

Open
1 task
lopatnov opened this issue Dec 31, 2024 · 2 comments
Open
1 task

bug(Autocomplete): Incorrect overlay in Dialog #30254

lopatnov opened this issue Dec 31, 2024 · 2 comments
Labels
needs: clarification The issue does not contain enough information for the team to determine if it is a real bug

Comments

@lopatnov
Copy link

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",

@lopatnov lopatnov added the needs triage This issue needs to be triaged by the team label Dec 31, 2024
@lopatnov
Copy link
Author

As I see cdk-overlay-backdrop wasn't created as for mat-select.
Example for Autocomplete:
Image
Example for Select:
Image

@crisbeto
Copy link
Member

crisbeto commented Jan 6, 2025

Can you post a reproduction?

@crisbeto crisbeto added needs: clarification The issue does not contain enough information for the team to determine if it is a real bug and removed needs triage This issue needs to be triaged by the team labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: clarification The issue does not contain enough information for the team to determine if it is a real bug
Projects
None yet
Development

No branches or pull requests

2 participants