Skip to content

Commit 6ae3e90

Browse files
RandomFadsAnonymousRich-Harris
authored
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 <[email protected]> Co-authored-by: Rich Harris <[email protected]>
1 parent 123fab2 commit 6ae3e90

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/four-apples-camp.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 `<textarea wrap="off">` as a valid attribute value

packages/svelte/elements.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ export interface HTMLTextareaAttributes extends HTMLAttributes<HTMLTextAreaEleme
14221422
// needs both casing variants because language tools does lowercase names of non-shorthand attributes
14231423
defaultValue?: string | string[] | number | undefined | null;
14241424
defaultvalue?: string | string[] | number | undefined | null;
1425-
wrap?: 'hard' | 'soft' | undefined | null;
1425+
wrap?: 'hard' | 'soft' | 'off' | undefined | null;
14261426

14271427
'on:change'?: ChangeEventHandler<HTMLTextAreaElement> | undefined | null;
14281428
onchange?: ChangeEventHandler<HTMLTextAreaElement> | undefined | null;

0 commit comments

Comments
 (0)