feat(inputs): add better autofocus (#26)

fix issue #25
This commit is contained in:
Hugo Massing
2018-08-06 13:20:20 +02:00
committed by Henrique Dias
parent 208f21728f
commit 157b2da133
9 changed files with 18 additions and 12 deletions

View File

@@ -43,6 +43,12 @@ Vue.prototype.$showError = function (error) {
n.show()
}
Vue.directive('focus', {
inserted: function (el) {
el.focus()
}
})
/* eslint-disable no-new */
new Vue({
el: '#app',