From ab80d9d2143b77935ae2544ddee83cf67ec900b7 Mon Sep 17 00:00:00 2001 From: vhladko <56257437+vhladko@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:03:00 +0300 Subject: [PATCH] fix: add missing plaintext-only value to contenteditable type (#9242) fixes #9181 --- .changeset/slimy-comics-switch.md | 5 +++++ packages/svelte/elements.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/slimy-comics-switch.md diff --git a/.changeset/slimy-comics-switch.md b/.changeset/slimy-comics-switch.md new file mode 100644 index 000000000000..20f6c44ff57c --- /dev/null +++ b/.changeset/slimy-comics-switch.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: add missing plaintext-only value to contenteditable type diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 43ef665464c3..2161f56da45a 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -486,7 +486,7 @@ export interface HTMLAttributes extends AriaAttributes, D accesskey?: string | undefined | null; autofocus?: boolean | undefined | null; class?: string | undefined | null; - contenteditable?: Booleanish | 'inherit' | undefined | null; + contenteditable?: Booleanish | 'inherit' | 'plaintext-only' | undefined | null; contextmenu?: string | undefined | null; dir?: string | undefined | null; draggable?: Booleanish | undefined | null;