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

8 lines
166 B
TypeScript
Raw Normal View History

2022-11-20 07:30:45 -08:00
import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
connect(): void {
(this.element as HTMLInputElement).focus();
}
}