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-20 11:51:40 +00:00
|
|
|
mounted: (el: HTMLElement) => el.focus()
|
2022-04-15 14:24:30 +00:00
|
|
|
}
|