]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: correct the type of `<details>`'s `onToggle` event handler (#10938)
authorbtea <2356281422@qq.com>
Mon, 20 May 2024 11:42:34 +0000 (19:42 +0800)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 11:42:34 +0000 (19:42 +0800)
Fixes #10928

packages/runtime-dom/src/jsx.ts

index 5ba9b9488499b811883ff6a291215d9f495bf70b..964d5481d4b54ea07ea076b02e3c0a68e53cf498 100644 (file)
@@ -406,7 +406,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
 
 export interface DetailsHTMLAttributes extends HTMLAttributes {
   open?: Booleanish
-  onToggle?: Event
+  onToggle?: (payload: ToggleEvent) => void
 }
 
 export interface DelHTMLAttributes extends HTMLAttributes {