The following was helpful.
Set focus text field inside dialog when dialog opened
I have custom text field and I must focus it functionality when dialog is opened. I tried focus it using vue.js refs:
Code:
<v-app id="app">
<v-row align="center">
<v-col cla...
By accessing $refs after a short delay when opening the dialog, it worked successfully.
watch: {
dialog: function(value) {
if (value) {
setTimeout(() => {
this.$refs.name.focus();
}, 200);
}
}
}




Comments
…