0๐
โ
If you want to pass down the name of the ref:
new Vue({
el: "#app",
methods: {
focusIt(value) {
this.$refs[value].focus();
}
}
})
Source:stackexchange.com