Closed tcastelly closed 1 week ago
I think this:
onClick: (e: MouseEvent) => () => console.log('click', e),
should be this:
onClick: (e: MouseEvent) => console.log('click', e),
Not clear to me what the purpose of that extra function is.
I think this:
onClick: (e: MouseEvent) => () => console.log('click', e),
should be this:
onClick: (e: MouseEvent) => console.log('click', e),
Not clear to me what the purpose of that extra function is.
You are absolutely right, I made a typo :(
Sorry, and thank you.
Vue version
3.5
Link to minimal reproduction
https://github.com/shenron/vite-demo/blob/issue-functional-cmp-events/src/components/BaseLink.tsx#L21
Steps to reproduce
After installed and launched the project a "Base Link" should be visible, click it.
What is expected?
a
console.log('click')
should be visible in the console.What is actually happening?
The click event is not catch
System Info
Any additional comments?
Because of eslint version conflict, install the project using: