Skip to content

Commit

Permalink
disable spellcheck for text areas by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mishankov committed Jan 17, 2024
1 parent 1a475e6 commit e5212aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TextArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
export let value = ""
export let id = "ta"
export let labelText = ""
export let spellcheck = false
</script>

{#if labelText !== ""}
<label for="{id}">Source</label>
{/if}

<textarea id="{id}" bind:value={value}/>
<textarea id="{id}" bind:value={value} {spellcheck}/>

<style>
textarea {
Expand Down

0 comments on commit e5212aa

Please sign in to comment.