From b5ddcc9381a3a2695a3eed85809e33b9801c5cce Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Tue, 13 Feb 2024 11:14:16 +0100 Subject: [PATCH] feat: enforce spelling check for comment field --- app/components/report-row/template.hbs | 1 + app/components/tracking-bar/template.hbs | 1 + app/index/activities/edit/template.hbs | 1 + 3 files changed, 3 insertions(+) diff --git a/app/components/report-row/template.hbs b/app/components/report-row/template.hbs index 50039414b..81b2b4198 100644 --- a/app/components/report-row/template.hbs +++ b/app/components/report-row/template.hbs @@ -27,6 +27,7 @@ id="row-comment" value={{cs.comment}} disabled={{not this.editable}} + spellcheck="true" {{on "change" (pick "target.value" (fn (mut cs.comment)))}} data-test-report-comment /> diff --git a/app/components/tracking-bar/template.hbs b/app/components/tracking-bar/template.hbs index a5e60c164..83baf7115 100644 --- a/app/components/tracking-bar/template.hbs +++ b/app/components/tracking-bar/template.hbs @@ -24,6 +24,7 @@ class="form-control" placeholder="Comment" name="comment" + spellcheck="true" @value={{this.tracking.activity.comment}} disabled={{this.tracking.activity.active}} /> diff --git a/app/index/activities/edit/template.hbs b/app/index/activities/edit/template.hbs index a103f54d3..882d1bd67 100644 --- a/app/index/activities/edit/template.hbs +++ b/app/index/activities/edit/template.hbs @@ -32,6 +32,7 @@ placeholder="Comment" name="comment" id="comment" + spellcheck="true" value={{this.changeset.comment}} {{on "change"