Skip to content

Commit

Permalink
fix(textarea.svelte): the textarea component had a bug with prettier
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pixelmund committed Feb 16, 2021
1 parent 3c46bc1 commit fb26507
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/components/Textarea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
const {form, handleChange} = getContext(key);
</script>

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

0 comments on commit fb26507

Please sign in to comment.