angular / angular/components

bug(autocomplete): scroll locking

Đang mở
#26,484 7 bình luận 5 reaction 0 người được giao Xem trên GitHub
area: material/autocomplete P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### 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.

![autocomplete](https://user-images.githubusercontent.com/27373333/214404976-70301962-bd39-4340-922c-451d59411a5c.gif)

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề tại trang tổng quan Material select được liên kết, so sánh thao tác cuộn của autocomplete với hành vi của menu hoặc select. Theo dõi hành vi của autocomplete và các overlay liên quan trong repository Angular components; hoàn tất khi thao tác cuộn của div, html hoặc body bên dưới luôn bị khóa nhất quán trong khi panel autocomplete đang mở.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.