mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
Add Stimulus autofocus controller
This commit is contained in:
parent
efef85b7c6
commit
9a4c0d576d
1 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
import { Controller } from '@hotwired/stimulus';
|
||||
|
||||
export default class extends Controller {
|
||||
connect(): void {
|
||||
(this.element as HTMLInputElement).focus();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue