Click handlers not working anymore

This issue has been tracked since 2022-11-23.

I think 1.0.0-alpha.2 broke the click handlers. This code worked with 1.0.0-alpha.1

Now

import { t } from "@arrow-js/core";

t`
    <button @click=${() => console.log('click')}>Click</button>
`(document.getElementById('app'));

renders as

<button @click="<!--➳❍--">&gt;Click</button>

image

And clicking it does nothing

nbgraham wrote this answer on 2022-11-23
t`
    <button @click=${() => console.log('click')} id="test">Click</button>
`(document.getElementById('app'));

renders as

<button @click="<!--➳❍--"> id="test"&gt;Click</button>

image

justin-schroeder wrote this answer on 2022-11-23

Well that's no good. I wonder why it's not broken in other instances. Will look into this more

justin-schroeder wrote this answer on 2022-11-23

Oh, I believe you need quotes around your callback yes?

nbgraham wrote this answer on 2022-11-23

oops, yes

but it did work without quotes in the old version, interesting

More Details About Repo
Owner Name justin-schroeder
Repo Name arrow-js
Full Name justin-schroeder/arrow-js
Language TypeScript
Created Date 2022-11-08
Updated Date 2023-03-28
Star Count 1240
Watcher Count 21
Fork Count 22
Issue Count 7

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date