All files / src/directives/v-focus index.js

60% Statements 3/5
66.66% Branches 4/6
100% Functions 1/1
60% Lines 3/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11    7x   90x   90x        
import { select } from '../../utils/edit';
 
export const focus = {
    inserted(el, binding) {
        Iif (!!binding.value || binding.value === undefined)
            el.focus();
        Iif (binding.value === 'select')
            select(el);
    },
};