Skip to content

Commit

Permalink
fix: correct the type of <details>'s onToggle event handler (#10938)
Browse files Browse the repository at this point in the history
Fixes #10928
  • Loading branch information
btea authored May 20, 2024
1 parent 9fead52 commit fd18ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fd18ce7

Please sign in to comment.