htm icon indicating copy to clipboard operation
htm copied to clipboard

Some event handler converts to boolean

Open abnerlee opened this issue 3 years ago • 0 comments

Hi,

const h = (tag, props, ...children) => ({ tag, props, children });
const html = htm.bind(h);
const dom = html`<div onCompositionStart=${()=>{}} onClick=${()=>{}}>aaa</div>`

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

abnerlee avatar Nov 20 '22 07:11 abnerlee