adopted-ember-addons / adopted-ember-addons/ember-keyboard

Using the on-key modifier in a list, binds to all list items.

Đang mở
#231 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
177
Fork
59
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hey,

Love the on-key modifier, however when using it in a list I observe the following:

```


    {{#each listItems as |item|}}
  • tabindex="0">{{item.name}}

  • {{/each}}

```

When I focus the list item and hit enter, I see an alert triggered for each of the items.

Any guidance on this?

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

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

Hướng nghiên cứu

Start by reproducing the list example using the on-key modifier and the Enter key, then inspect how handlers are attached when the list is rendered. Done means pressing Enter on one focused list item triggers only that item's alert rather than every item's alert.

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

Đánh giá

Công nghệ
javascript
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
Cần làm rõ
Mức phù hợp với người mới
35/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.