koel/resources/assets/js/directives/focus.ts
2024-10-14 00:37:01 +07:00

5 lines
118 B
TypeScript

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