Disabling an open Autocomplete still allows option changes

Đang mở
#950 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

The bug is in the Autocomplete component's disabled input handling while its option panel is open. Start by finding where disabled is read and where option click handlers emit valueChanged, then check whether the open panel is closed when disabled becomes true. Done when the reproduction steps leave the value at Apple, close the options, and fire no valueChanged event, with a test that toggles disabled while the panel is open.

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

Mô tả

Reproduction
  1. Render the Autocomplete with Apple selected and open its options.
  2. Set the control's disabled input to true while the options are open.
  3. Click Orange in the list.

Chrome reproduction

Expected behavior

The options close, the value stays Apple, and no valueChanged event fires.

Actual behavior

The options stay interactive. Clicking Orange changes the value and fires an event.

Reproduced in Chrome 157 on master at aa80e58.

Ngôn ngữ chính
TypeScript
Star
9
Fork
8
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AbsaOSS/cps-shared-ui

Tất cả issue của AbsaOSS/cps-shared-ui

Issue tương tự

Thêm issue về TypeScript

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.