bug(autocomplete): scroll locking
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
### 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
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:
1. https://material.angular.io/components/select/overview
2. open autocomplete and scroll on body
### 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
- Angular: 15.1.1
- CDK/Material: 15.1.1
- Browser(s): all
- Operating System (e.g. Windows, macOS, Ubuntu): all
贡献指南
调研方向
首先在链接的 Material select 概览中复现该问题,将 autocomplete 的滚动与 menu 或 select 的行为进行比较。在 Angular components repository 中跟踪 autocomplete 及相关 overlay 的行为;当 autocomplete 面板打开时,底层 div、html 或 body 的滚动能够始终保持锁定,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100