vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] Programmatically set focus of text-field

Open AuspeXeu opened this issue 8 years ago • 4 comments

Problem to solve

Setting the focus to a given text-field

Proposed solution

Offer a reactive property that allows to set a target text-field as focus.

AuspeXeu avatar May 16 '18 14:05 AuspeXeu

You can do this by using $refs and calling .focus().

<v-text-field ref="field" />

Can now be accessed by doing:

this.$refs.field.focus()

johnleider avatar May 16 '18 15:05 johnleider

$ref...focus() does not seem to work in version 1.1.6 Any alternative?

agentz3r0 avatar Jul 18 '18 17:07 agentz3r0

Please do not comment on old closed issues. If you are having a problem, please submit a new ticket, thank you!

johnleider avatar Jul 19 '18 04:07 johnleider

not work for me too... any solution or link?

pudjamansyurin avatar Jul 28 '18 17:07 pudjamansyurin