Skip to content

Commit

Permalink
Call onClick in regular events list
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroborges committed Oct 11, 2024
1 parent 3701734 commit 8b2a367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ const Link = forwardRef<unknown, InertiaLinkProps>(

const regularEvents = {
onClick: (event) => {
onClick(event)

if (shouldIntercept(event)) {
event.preventDefault()

Expand Down

0 comments on commit 8b2a367

Please sign in to comment.