Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inertia V2 beta - onClick doesn't get called anymore #2018

Closed
wizzymore opened this issue Oct 11, 2024 · 0 comments · Fixed by #2019
Closed

Inertia V2 beta - onClick doesn't get called anymore #2018

wizzymore opened this issue Oct 11, 2024 · 0 comments · Fixed by #2019
Labels
react Related to the react adapter

Comments

@wizzymore
Copy link

Version:

  • @inertiajs/react version: #.#.#

Describe the problem:

After switching from v1 to v2 all onClick handlers for the elements don't work anymore.

Steps to reproduce:

<Link href='/' onClick={() => alert(1)}>Click here</Link>
<Link as="button" method="post" href='/' onClick={() => alert(1)}>Click here</Link>
@wizzymore wizzymore added the react Related to the react adapter label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react Related to the react adapter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant