Skip to content

Commit b27ca42

Browse files
authored
fix: add files and group properties to HTMLInputAttributes (#15492)
Fixes #14579 Although this isn't 100% correct because there's no `group` attribute, there's no better way to make people have components' props just be `HTMLInputAttributes` and allow them to reference `group`
1 parent a1257c1 commit b27ca42

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/plenty-bats-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: add `files` and `group` to HTMLInputAttributes in elements.d.ts

packages/svelte/elements.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
10761076
checked?: boolean | undefined | null;
10771077
dirname?: string | undefined | null;
10781078
disabled?: boolean | undefined | null;
1079+
files?: FileList | undefined | null;
10791080
form?: string | undefined | null;
10801081
formaction?: string | undefined | null;
10811082
formenctype?:
@@ -1087,6 +1088,7 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
10871088
formmethod?: 'dialog' | 'get' | 'post' | 'DIALOG' | 'GET' | 'POST' | undefined | null;
10881089
formnovalidate?: boolean | undefined | null;
10891090
formtarget?: string | undefined | null;
1091+
group?: any | undefined | null;
10901092
height?: number | string | undefined | null;
10911093
indeterminate?: boolean | undefined | null;
10921094
list?: string | undefined | null;

0 commit comments

Comments
 (0)