Skip to content

Commit

Permalink
Fix type of onClick for Link component in Vue (#1701)
Browse files Browse the repository at this point in the history
* Fix type of `onClick` for Link component in Vue

* Update changelog
  • Loading branch information
reinink authored Oct 11, 2023
1 parent 2595fa3 commit da392ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For changes prior to v1.0.0, see the [legacy releases](https://legacy.inertiajs.

## [Unreleased](https://github.com/inertiajs/inertia/compare/v1.0.11...HEAD)

- Nothing!
- Fix type of `onClick` for `Link` component in React and Vue ([#1699](https://github.com/inertiajs/inertia/pull/1699), [#1701](https://github.com/inertiajs/inertia/pull/1701))

## [v1.0.11](https://github.com/inertiajs/inertia/compare/v1.0.10...v1.0.11)

Expand Down
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 da392ba

Please sign in to comment.