Skip to content

Commit fb26507

Browse files
committed
fix(textarea.svelte): the textarea component had a bug with prettier
The textarea component had a bug with prettier, when you clicked out of it. Randomly applied spaces and new lines before the text. I don't know why this is happing but the prettier-ignore fixes it.
1 parent 3c46bc1 commit fb26507

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/components/Textarea.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
const {form, handleChange} = getContext(key);
88
</script>
99

10-
<textarea {name} on:change={handleChange} on:blur={handleChange} {...$$props}>
11-
{$form[name]}
12-
</textarea>
10+
<!-- prettier-ignore -->
11+
<textarea {name} on:change={handleChange} on:blur={handleChange} {...$$props}>{$form[name]}</textarea>

0 commit comments

Comments
 (0)