developit / developit/htm

Some event handler converts to boolean

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

Mô tả

Hi,

```
const h = (tag, props, ...children) => ({ tag, props, children });
const html = htm.bind(h);
const dom = html`

{}} onClick=${()=>{}}>aaa
`
```

In `props`, the `onCompositionStart` becomes `true`. The expected behavior is that the value of `onCompositionStart` and `onClick` in `props` should both be Function

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

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

Hướng nghiên cứu

Start by running the provided tagged-template reproduction and trace how event attributes are parsed into props. Done means both onCompositionStart and onClick remain Function values rather than being converted to booleans.

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