Some event handler converts to boolean
未關閉
- 主要語言
- JavaScript
- 星號
- 9k
- 分支
- 181
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
研究方向
首先執行提供的 tagged-template 重現程式碼,並追蹤事件屬性如何被解析為 props。當 onCompositionStart 和 onClick 都維持為 Function 值,而不是被轉換為布林值時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100