-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/dialog

Description
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
We have an autocomplete element in dialog body and dialog body is scrollable. if we open the autocomplete options and scroll the dialog body, the options popup is not bind to its trigger element and is floating headless.
Recording.Mini.mp4
Reproduction
StackBlitz link: https://stackblitz.com/edit/yqwgdw?file=src%2Fexample%2Fdialog-overview-example.ts
Steps to reproduce:
- Create a Mat Dialog.
- Place a Mat Autocomplete element in dialog body.
- Add 500px margin all around the autocomplete to introduce scrollbars.
- Open the autocomplete popup for options.
- Scroll the underling dialog body.
Expected Behavior
The options popup should stay attached to input box.
Actual Behavior
The options popup is floating headless.
Environment
- Angular: 17.3.0
- CDK/Material: 17.3.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
MurhafSousli
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/dialog