fix(text-area): export readonly prop

Fixes #1009
This commit is contained in:
Eric Liu 2022-01-26 19:10:41 -08:00
commit 0f80ff80c1

View file

@ -17,6 +17,9 @@
/** Set to `true` to disable the input */ /** Set to `true` to disable the input */
export let disabled = false; export let disabled = false;
/** Set to `true` to use the read-only variant */
export let readonly = false;
/** Specify the helper text */ /** Specify the helper text */
export let helperText = ""; export let helperText = "";
@ -87,11 +90,11 @@
rows="{rows}" rows="{rows}"
value="{value ?? ''}" value="{value ?? ''}"
placeholder="{placeholder}" placeholder="{placeholder}"
readonly="{readonly}"
class:bx--text-area="{true}" class:bx--text-area="{true}"
class:bx--text-area--light="{light}" class:bx--text-area--light="{light}"
class:bx--text-area--invalid="{invalid}" class:bx--text-area--invalid="{invalid}"
{...$$restProps} {...$$restProps}
readonly="{$$restProps.readonly === true ? true : undefined}"
on:change on:change
on:input on:input
on:input="{({ target }) => { on:input="{({ target }) => {