all files / src/internal/ focus.js

33.33% Statements 2/6
0% Branches 0/6
0% Functions 0/2
33.33% Lines 1/3
1 2 3 4 5 6 7 8 9 10                   
export default {
  bind (el, binding) {
    if (binding.value) el.focus()
  },
  update (el, binding) {
    if (!binding.oldValue && binding.value) el.focus()
  }
}