From 4570a82256747a2896ab8601c28ea5c3ff46492f Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Thu, 15 Feb 2024 22:38:30 +0000 Subject: [PATCH] Disable spellcheck in most locations around the app (places where spellcheck="true" has been specified, I've left it as is) --- gitbutler-ui/src/lib/components/Branches.svelte | 1 - gitbutler-ui/src/lib/components/CommitDialog.svelte | 1 + gitbutler-ui/src/lib/components/TextArea.svelte | 2 ++ gitbutler-ui/src/lib/components/TextBox.svelte | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gitbutler-ui/src/lib/components/Branches.svelte b/gitbutler-ui/src/lib/components/Branches.svelte index 074f0df58..dd3cb40f9 100644 --- a/gitbutler-ui/src/lib/components/Branches.svelte +++ b/gitbutler-ui/src/lib/components/Branches.svelte @@ -163,7 +163,6 @@ textFilter$.next(e.detail)} />
diff --git a/gitbutler-ui/src/lib/components/CommitDialog.svelte b/gitbutler-ui/src/lib/components/CommitDialog.svelte index 5c81748c1..e6aa79407 100644 --- a/gitbutler-ui/src/lib/components/CommitDialog.svelte +++ b/gitbutler-ui/src/lib/components/CommitDialog.svelte @@ -134,6 +134,7 @@ use:focusTextareaOnMount on:input={useAutoHeight} on:focus={useAutoHeight} + spellcheck={false} class="commit-box__textarea text-base-body-13" rows="1" disabled={isGeneratingCommigMessage} diff --git a/gitbutler-ui/src/lib/components/TextArea.svelte b/gitbutler-ui/src/lib/components/TextArea.svelte index fd43c83a7..d87642a21 100644 --- a/gitbutler-ui/src/lib/components/TextArea.svelte +++ b/gitbutler-ui/src/lib/components/TextArea.svelte @@ -7,6 +7,7 @@ export let rows = 4; export let id: string | undefined = undefined; export let disabled = false; + export let spellcheck = false; export let kind: 'default' | 'plain' = 'default'; @@ -22,6 +23,7 @@ {placeholder} {required} {rows} + {spellcheck} on:input={(e) => dispatch('input', e.currentTarget.value)} on:change={(e) => dispatch('change', e.currentTarget.value)} /> diff --git a/gitbutler-ui/src/lib/components/TextBox.svelte b/gitbutler-ui/src/lib/components/TextBox.svelte index 19045f833..b37db8af6 100644 --- a/gitbutler-ui/src/lib/components/TextBox.svelte +++ b/gitbutler-ui/src/lib/components/TextBox.svelte @@ -16,7 +16,7 @@ export let noselect = false; export let selectall = false; export let element: HTMLElement | undefined = undefined; - export let spellcheck = true; + export let spellcheck = false; const dispatch = createEventDispatcher<{ input: string; change: string }>();