Skip to content

Commit

Permalink
Fix type of onClick for Link component in Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Oct 11, 2023
1 parent 2595fa3 commit 8a1a20a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue2/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface InertiaLinkProps {
href: string
method?: Method
headers?: Record<string, string>
onClick?: (event: MouseEvent | KeyboardEvent) => void
onClick?: (event: MouseEvent) => void
preserveScroll?: PreserveStateOption
preserveState?: PreserveStateOption
replace?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface InertiaLinkProps {
href: string
method?: Method
headers?: object
onClick?: (event: MouseEvent | KeyboardEvent) => void
onClick?: (event: MouseEvent) => void
preserveScroll?: boolean | ((props: PageProps) => boolean)
preserveState?: boolean | ((props: PageProps) => boolean) | null
replace?: boolean
Expand Down

0 comments on commit 8a1a20a

Please sign in to comment.