You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
233 B
JavaScript

import Vue from 'vue'
import App from './App.vue'
Vue.directive('keep-focussed', {
inserted (el, binding) {
el.focus()
el.addEventListener('blur', () => el.focus())
}
})
new Vue({
el: '#app',
render: h => h(App)
})