Skip to content

Commit 3326bd8

Browse files
Rican7Rich-Harris
andauthored
feat: Add closedby to HTMLDialogAttributes (dialog element) (#15458)
* Adding the `closedby` attribute to dialog element Spec: https://html.spec.whatwg.org/#attr-dialog-closedby * Adding changeset * Update .changeset/metal-spoons-scream.md --------- Co-authored-by: Rich Harris <[email protected]>
1 parent c5912aa commit 3326bd8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/metal-spoons-scream.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 `closedby` property to HTMLDialogAttributes type

packages/svelte/elements.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ export interface HTMLDelAttributes extends HTMLAttributes<HTMLModElement> {
957957

958958
export interface HTMLDialogAttributes extends HTMLAttributes<HTMLDialogElement> {
959959
open?: boolean | undefined | null;
960+
closedby?: 'any' | 'closerequest' | 'none' | undefined | null;
960961
}
961962

962963
export interface HTMLEmbedAttributes extends HTMLAttributes<HTMLEmbedElement> {

0 commit comments

Comments
 (0)