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(mat-autocomplete): Autocomplete options are moving with dialog scrollbar #30416

Open
1 task
lopatnov opened this issue Jan 30, 2025 · 0 comments
Open
1 task
Labels
needs triage This issue needs to be triaged by the team

Comments

@lopatnov
Copy link

lopatnov commented Jan 30, 2025

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
@lopatnov lopatnov added the needs triage This issue needs to be triaged by the team label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant