Vuetify: v-textarea .selectionStart and .selectionEnd return undefined

Created on 12 Sep 2018  路  1Comment  路  Source: vuetifyjs/vuetify

I get the values of selectionStart and selectionEnd properties as undefined when I try to apply on a v-textarea instance on a keydown (@keydown) event -which features an event.preventDefault() at the very beginning if it is a necessary thing to point out.

The desired behavior
Return the indices of the start and the end of the selected part.

Snippet for Reprod
https://codepen.io/vahdet/pen/WgJyEw

Select some part of the predefined text here and watch for the values above the v-textarea

layer 8 issue

Most helpful comment

You need to reference the actual textarea element, not the v-textarea component
https://codepen.io/anon/pen/XPqPYK

>All comments

You need to reference the actual textarea element, not the v-textarea component
https://codepen.io/anon/pen/XPqPYK

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Webifi picture Webifi  路  3Comments

gluons picture gluons  路  3Comments

KuroThing picture KuroThing  路  3Comments

jofftiquez picture jofftiquez  路  3Comments

paladin2005 picture paladin2005  路  3Comments