vue js check focus event code example Example: focus on input field vuejs event <input @focus="function" />