-
I am writing my own component(s) and I am in need of handing a custom event in a child component. Normally this would work But the event in question has a hyphen in it (eg my-custom-event). So that changes the template to : and that never seems to trigger the event handler. More generally, I have looked for guidance on what naming conventions there are for synthetic events and I can't find any there either. Can someone help? should |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is supposed to work with lit/packages/lit-html/src/test/lit-html_test.ts Lines 1403 to 1430 in 47c6c90 |
Beta Was this translation helpful? Give feedback.
This is supposed to work with
@my-event=${myEventHandler}
, there are a few tests in Lit that use kebab-case like that, e.g.lit/packages/lit-html/src/test/lit-html_test.ts
Lines 1403 to 1430 in 47c6c90