Vuetify: 1.0.11
Vue: 2.5.16
Browsers: Chrome 65.0.3325.162
OS: Mac OS 10.13.3
I expect that the text field would autofocus when the menu is opened
nothing is autofocused
https://codepen.io/anon/pen/XEVKjB?&editors=101
I expect this has something to do with conflicting events
Looks like a duplicate of #3634
You should focus the field on nextTick: https://codepen.io/anon/pen/wmjzNr?editors=1010
Though the fixed codepen with nextTick only changes the CSS while the cursor itself is not showing up
@johnleider, @KaelWD any ideas why that is?
Because that method is an event handler, it should be called onFocus
https://github.com/vuetifyjs/vuetify/blob/42edad08fe8bd70f8c0bbd340d7ee5ab6bf96852/src/components/VTextField/VTextField.js#L195-L203
Although it does call this.$refs.input.focus() so idk.
I was having the same issue, and occasionally the cursor was not showing; sometimes even the input didn't get focused at all. What fixed the missing cursor and all the randomness was just setting a small timeout before calling focus as in the pen here: https://codepen.io/Selim_Salihovic/pen/qyvXzq
Most helpful comment
I was having the same issue, and occasionally the cursor was not showing; sometimes even the input didn't get focused at all. What fixed the missing cursor and all the randomness was just setting a small timeout before calling
focusas in the pen here: https://codepen.io/Selim_Salihovic/pen/qyvXzq