Vue-material: [md-input] Cursor jumps to end of input after first edit

Created on 19 Jan 2017  路  3Comments  路  Source: vuematerial/vue-material

Steps to reproduce

Any input after the first input will move the cursor to the end of the textfield. Seems to occur in md-input with a v-model. So for example, in the vue-material input documentation, inserting any character before the string "My initial value" will move the cursor to the end of "value".

Which browser?

Chrome, vue-material 0.6.3, Vue 2.1.8

Reproduction Link

You can try it in the vue-material documentation, in the "my initial value" example:
https://vuematerial.github.io/#/components/input

Codepen (same as the documentation)
http://codepen.io/anon/pen/oBBExK

Thanks for all your work so far!

bug

Most helpful comment

It's fixed and just waiting to be deployed along with the 0.7.0 version.

All 3 comments

You're right. Nasty bug!

It also causes the Input with v-model can not correctly write Chinese characters . However, it works in FireFox .

It's fixed and just waiting to be deployed along with the 0.7.0 version.

Was this page helpful?
0 / 5 - 0 ratings