Skip to content

Commit c74176e

Browse files
authoredSep 5, 2024··
fix(types): added name attribute support to details tag (#11823)
close #11821
1 parent 9b7797d commit c74176e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎packages-private/dts-test/tsx.test-d.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,5 @@ expectType<JSX.Element>(
121121
xmlns="http://www.w3.org/2000/svg"
122122
/>,
123123
)
124+
// details
125+
expectType<JSX.Element>(<details name="details" />)

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

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
405405
}
406406

407407
export interface DetailsHTMLAttributes extends HTMLAttributes {
408+
name?: string
408409
open?: Booleanish
409410
onToggle?: (payload: ToggleEvent) => void
410411
}

0 commit comments

Comments
 (0)
Please sign in to comment.