Vue.js focus input inside different component on keypress -


i have <table> rows containing form inputs.

i want simulate spreadsheet behavior, meaning when press key or down focus should change next/previous row's input.

the way i'm building attaching event handler in input this:

<td><input v-model="period.end" v-on:keydown="moveifcursorupordown"></td> 

the question how focus input inside different component inside moveifcursorupordown method.

i know of this.$refs.nameofinput.focus(), works focus inputs belonging component itself, don't know how use focus input inside different component.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -