2022-04-15 14:24:30 +00:00
|
|
|
import { Directive } from 'vue'
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A simple directive to set focus into an input field when it's shown.
|
|
|
|
*/
|
|
|
|
export const focus: Directive = {
|
2022-04-15 17:00:08 +00:00
|
|
|
created: (el: HTMLElement) => el.focus()
|
2022-04-15 14:24:30 +00:00
|
|
|
}
|