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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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();
}
}