koel/resources/assets/js/directives/focus.ts

6 lines
118 B
TypeScript
Raw Normal View History

import type { Directive } from 'vue'
2022-04-15 14:24:30 +00:00
export const focus: Directive = {
mounted: (el: HTMLElement) => el.focus(),
2022-04-15 14:24:30 +00:00
}