vuejs when create new input set focus code example Example: focus on input field vuejs event <input @focus="function" />