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

6 lines
112 B
TypeScript
Raw Normal View History

2022-04-15 14:24:30 +00:00
import { Directive } from 'vue'
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
}