Skip to content

Commit

Permalink
replace {{autofocus}} modifier with {{focus}}. rm obsolete autofocus.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Jul 5, 2024
1 parent 1da4c49 commit 223e545
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
20 changes: 5 additions & 15 deletions packages/frontend/app/components/instructor-groups/new.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</label>
<input
id="title-{{templateId}}"
{{autofocus}}
{{focus}}
type="text"
disabled={{this.save.isRunning}}
placeholder={{t "general.instructorGroupTitlePlaceholder"}}
Expand All @@ -19,31 +19,21 @@
{{on "keyup" this.keyboard}}
{{on "keyup" (fn this.addErrorDisplayFor "title")}}
{{on "input" (pick "target.value" (set this.title))}}
>
/>
<ValidationError @errors={{get-errors-for this.title}} />
</div>
<div class="buttons">
<button
type="button"
class="done text"
{{on "click" (perform this.save)}}
data-test-done
>
<button type="button" class="done text" {{on "click" (perform this.save)}} data-test-done>
{{#if this.save.isRunning}}
<LoadingSpinner />
{{else}}
{{t "general.done"}}
{{/if}}
</button>
<button
type="button"
class="cancel text"
{{on "click" @cancel}}
data-test-cancel
>
<button type="button" class="cancel text" {{on "click" @cancel}} data-test-cancel>
{{t "general.cancel"}}
</button>
</div>
</div>
</div>
{{/let}}
{{/let}}
3 changes: 0 additions & 3 deletions packages/ilios-common/addon/modifiers/autofocus.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/ilios-common/app/modifiers/autofocus.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/test-app/tests/integration/modifiers/autofocus-test.js

This file was deleted.

0 comments on commit 223e545

Please sign in to comment.