fix: Added the "off" value to the TS definition for textarea's wrap attribute (#17326)

* fix: Added the "off" value to the TS definition for textarea's wrap attribute.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea#wrap

* changeset

---------

Co-authored-by: Anonymous <anon@inter.net>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
pull/17328/head
Random Fads 2 days ago committed by GitHub
parent 123fab2731
commit 6ae3e908a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: Add `<textarea wrap="off">` as a valid attribute value

@ -1422,7 +1422,7 @@ export interface HTMLTextareaAttributes extends HTMLAttributes<HTMLTextAreaEleme
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
defaultValue?: string | string[] | number | undefined | null;
defaultvalue?: string | string[] | number | undefined | null;
wrap?: 'hard' | 'soft' | undefined | null;
wrap?: 'hard' | 'soft' | 'off' | undefined | null;
'on:change'?: ChangeEventHandler<HTMLTextAreaElement> | undefined | null;
onchange?: ChangeEventHandler<HTMLTextAreaElement> | undefined | null;

Loading…
Cancel
Save