koel/resources/assets/js/directives/focus.ts
2022-12-02 17:17:37 +01:00

5 lines
112 B
TypeScript

import { Directive } from 'vue'
export const focus: Directive = {
mounted: (el: HTMLElement) => el.focus()
}