Retrospring/app/javascript/retrospring/controllers/autofocus_controller.ts

8 lines
166 B
TypeScript

import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
connect(): void {
(this.element as HTMLInputElement).focus();
}
}