Skip to content

Commit f5f9465

Browse files
trueadmdummdidumm
andauthored
feat: add support for webkitdirectory DOM boolean attribute (#10847)
* feat: add support for webkitdirectory DOM boolean attribute * add to types --------- Co-authored-by: Simon H <[email protected]>
1 parent c564c77 commit f5f9465

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/beige-cobras-smoke.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+
feat: add support for webkitdirectory DOM boolean attribute

packages/svelte/elements.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ export interface HTMLInputAttributes extends HTMLAttributes<HTMLInputElement> {
10561056
type?: HTMLInputTypeAttribute | undefined | null;
10571057
value?: any;
10581058
width?: number | string | undefined | null;
1059+
webkitdirectory?: boolean | undefined | null;
10591060

10601061
'on:change'?: ChangeEventHandler<HTMLInputElement> | undefined | null;
10611062
onchange?: ChangeEventHandler<HTMLInputElement> | undefined | null;

packages/svelte/src/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export const DOMBooleanAttributes = [
8383
'required',
8484
'reversed',
8585
'seamless',
86-
'selected'
86+
'selected',
87+
'webkitdirectory'
8788
];
8889

8990
export const namespace_svg = 'http://www.w3.org/2000/svg';

0 commit comments

Comments
 (0)