diff --git a/app/javascript/retrospring/controllers/autofocus_controller.ts b/app/javascript/retrospring/controllers/autofocus_controller.ts new file mode 100644 index 00000000..a0e423c5 --- /dev/null +++ b/app/javascript/retrospring/controllers/autofocus_controller.ts @@ -0,0 +1,7 @@ +import { Controller } from '@hotwired/stimulus'; + +export default class extends Controller { + connect(): void { + (this.element as HTMLInputElement).focus(); + } +}