BUG dot notation inside onClick handler treated as signal
zachlankton opened this issue · comments
the following code:
<tr onClick={(ev) => {
chkbox.checked = !chkbox.checked
}}>
is being transpiled into this:
<tr onClick={(ev) => {
chkbox.checked.set(!chkbox.checked)
}}>
Expected:
No transpilation should be happening on this as there are not any $
prefixed signals
Work Around:
Moving the onClick handler out of the JSX seems to fix this problem for now:
const chkBoxClick = (ev) => chkbox.checked = !chkbox.checked
<tr onClick={chkBoxClick}></tr>