Add Stimulus autofocus controller
This commit is contained in:
parent
efef85b7c6
commit
9a4c0d576d
|
@ -0,0 +1,7 @@
|
||||||
|
import { Controller } from '@hotwired/stimulus';
|
||||||
|
|
||||||
|
export default class extends Controller {
|
||||||
|
connect(): void {
|
||||||
|
(this.element as HTMLInputElement).focus();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue