From 8a1a20ad36d29efe39d3dbcd9b25d87deb06fa28 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Wed, 11 Oct 2023 09:41:47 -0400 Subject: [PATCH] Fix type of `onClick` for Link component in Vue --- packages/vue2/src/link.ts | 2 +- packages/vue3/src/link.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue2/src/link.ts b/packages/vue2/src/link.ts index 1eb256880..53b34a526 100755 --- a/packages/vue2/src/link.ts +++ b/packages/vue2/src/link.ts @@ -15,7 +15,7 @@ export interface InertiaLinkProps { href: string method?: Method headers?: Record - onClick?: (event: MouseEvent | KeyboardEvent) => void + onClick?: (event: MouseEvent) => void preserveScroll?: PreserveStateOption preserveState?: PreserveStateOption replace?: boolean diff --git a/packages/vue3/src/link.ts b/packages/vue3/src/link.ts index 78bb3ecf4..9bc3949db 100755 --- a/packages/vue3/src/link.ts +++ b/packages/vue3/src/link.ts @@ -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