Skip to content

Commit 251c648

Browse files
fix: fix type for ElementInternals.form
1 parent 19f31c4 commit 251c648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare global {
2121

2222
interface ElementInternals extends ARIAMixin {
2323
checkValidity: () => boolean;
24-
readonly form: HTMLFormElement;
24+
readonly form: HTMLFormElement | null;
2525
readonly labels: NodeList;
2626
reportValidity: () => boolean;
2727
setFormValue: (

0 commit comments

Comments
 (0)