Skip to content

Commit fd18ce7

Browse files
authoredMay 20, 2024··
fix: correct the type of <details>'s onToggle event handler (#10938)
Fixes #10928
1 parent 9fead52 commit fd18ce7

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime-dom/src

1 file changed

+1
-1
lines changed
 

‎packages/runtime-dom/src/jsx.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
406406

407407
export interface DetailsHTMLAttributes extends HTMLAttributes {
408408
open?: Booleanish
409-
onToggle?: Event
409+
onToggle?: (payload: ToggleEvent) => void
410410
}
411411

412412
export interface DelHTMLAttributes extends HTMLAttributes {

0 commit comments

Comments
 (0)
Please sign in to comment.