-
Notifications
You must be signed in to change notification settings - Fork 6.8k
bug(autocomplete): scroll locking #26484
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
Comments
Is this under any considerations for fixing? This is also not working when having more than one autocompletes per page and using scroll blocking strategy. Focusing first autocomplete will work as expected, but if you focus first, and then focus second, the second one scroll strategy is broken. Oh, it may be a different issue after all. Just notice that everywhere on material demo page blocking scroll strategy is working, but not for autocomplete. |
Any way to bypass or patch this problem via CSS or using another API for the popover? (in case is using some specific API for that purpose). We are using Angular Material 17 and the problem persists (even in AM18). This doesn't replicate if you use a mouse, it only triggers when using the mousepad. |
Is it really hard to add a transparent backdrop? |
Solution for 16.0.2
|
EDITI figured that my auto-complete dropdown works as expected. For me this behavior is a bit strange, but it is also apparent in the autocomplete example page. Original CommentI have the same issue in angular 18 in a dialog: Repro Steps
Actual ResultThe autocomplete suggestions are not sticking to its corresponding input (just like the video above) Expected ResultAutocomplete suggestions sticks to the input, also while scrolling. DebuggingI am quite new to angular and web-development in general.
Environment
|
Hi team, |
Is this a regression?
The previous version in which this bug was not present was
No response
Description
autocomplete does not behave like other material compnents like menu or select - those lock the scrolling of the underlying div/html/body.
Reproduction
Steps to reproduce:
Expected Behavior
scroll is locked
Actual Behavior
scrolling is enabled - inconvenient behavior between material components, resulting in multiple issues e.g. z-index or if a container for scrolling is used the autocomplete panel does not scroll.
Environment
The text was updated successfully, but these errors were encountered: