chore: v11 TextArea

`cols` no longer has a defaults to 50 but remains at 100% width by default.
This commit is contained in:
Gregor Wassmann 2023-03-31 19:45:57 +02:00
commit 8ff8007f32
4 changed files with 8 additions and 5 deletions

View file

@ -5,8 +5,11 @@
/** Specify the placeholder text */
export let placeholder = "";
/** Specify the number of cols */
export let cols = 50;
/**
* Specify the number of cols
* @type {number}
* */
export let cols = undefined;
/** Specify the number of rows */
export let rows = 4;
@ -110,6 +113,7 @@
class:bx--text-area--light="{light}"
class:bx--text-area--invalid="{invalid}"
maxlength="{maxCount ?? undefined}"
style="{cols ? '' : 'width: 100%;'}"
{...$$restProps}
on:change
on:input