Skip to content

Commit 146ec6d

Browse files
authored
Merge pull request #418 from codegouvfr/fix/input-native-label-props-type
fix(input): use correct label type for native props
2 parents 056ca4d + baff2c8 commit 146ec6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Input.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export namespace InputProps {
5353
>;
5454
/** Props forwarded to the underlying <label /> element */
5555
nativeLabelProps?: DetailedHTMLProps<
56-
LabelHTMLAttributes<HTMLInputElement>,
57-
HTMLInputElement
56+
LabelHTMLAttributes<HTMLLabelElement>,
57+
HTMLLabelElement
5858
>;
5959

6060
nativeTextAreaProps?: never;
@@ -70,8 +70,8 @@ export namespace InputProps {
7070
>;
7171
/** Props forwarded to the underlying <label /> element */
7272
nativeLabelProps?: DetailedHTMLProps<
73-
LabelHTMLAttributes<HTMLTextAreaElement>,
74-
HTMLTextAreaElement
73+
LabelHTMLAttributes<HTMLLabelElement>,
74+
HTMLLabelElement
7575
>;
7676

7777
nativeInputProps?: never;

0 commit comments

Comments
 (0)