Combobox rework

Đang mở
#2,857 2 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Issue không nêu tên tệp hay bài kiểm thử nào; hãy bắt đầu bằng cách xác định các điểm vào hiện có của combobox và listbox rồi so sánh hành vi hiện tại của chúng. Xác định tiêu chí hoàn thành xoay quanh các giá trị combobox tùy chỉnh được commit khi blur và một bộ lọc dropdown riêng, không commit, cho select, sau đó xác minh cả hai luồng tương tác.

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

Mô tả

Currently a combobox and listbox both look are behave mostly the same but the combobox lets you add arbitrary values. But this treatment makes it unclear whether or not the input does accept arbitrary values and we run into issues by using the text input as the method by which you filter the list since you'd expect whatever is in the input to be the value accepted by the form.

I therefore think we can distinguish the two by having:

  1. Combobox that behaves basically as it does not but that commits the value on blur (rather than requiring click or enter to assign the custom value).
  2. A select that has a separate input to filter the list within the dropdown instead. This way it's clear that it will not be saved when the dropdown is closed, that its distinct from the actual input and its more intuitive which accepts custom input.

Ariakit has a good example of the dropdown input for a new filterable listbox.

Image
Ngôn ngữ chính
TypeScript
Star
231
Fork
26
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
20

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

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 oxidecomputer/console

Tất cả issue của oxidecomputer/console

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.