Skip to content

Commit

Permalink
fix(VTextField): add check for $refs.input before focusing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 14, 2019
1 parent dc06f53 commit 6b0ee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VTextField/VTextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export default baseMixins.extend<options>().extend({
e && this.$emit('blur', e)
},
onClick () {
if (this.isFocused || this.disabled) return
if (this.isFocused || this.disabled || !this.$refs.input) return

this.$refs.input.focus()
},
Expand Down

0 comments on commit 6b0ee22

Please sign in to comment.