New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v-model breaks selectionStart #3029
Comments
Hello! Thanks for filing the issue 😄 . Please follow the Issue Reporting Guidelines and provide a minimal JSFiddle or JSBin containing a set of reproducible steps that can lead to the behaviour you described. I cloned your repo and tested it on chrome, it works well. Next time provide a simple repro. People can't go through your whole application to help... |
Thanks for the feedback. I'll provide a gh-pages link soon. It's impossible to reproduce the bug on the codepen or jsfiddle due to Piano.js nature. |
I see, in that case it may be due to Piano.js. It'd be great if you can create a repro without pianojs 👍 |
@posva Hi again! Here's a codepen with repro
Looking forward for your response! |
I didn't had internet yesterday 😢 I hope being able to do it this evening |
Finally got internet back. I'm having some trouble creating a test that breaks as a unit test. I'll try again today with an e2e test although it's a by overkill. Calling the blur method on the input doesn't behave the same way as actually doing. |
Fix vuejs#3029 Force setting the value actually resets selectionStart and selectionEnd No test is added because you cannot simulate the bug by using input.blur()
Fix #3029 Force setting the value actually resets selectionStart and selectionEnd No test is added because you cannot simulate the bug by using input.blur()
Vue.js version
1.0.24
Reproduction Link
https://github.com/kucherenkovova/piano/tree/BUG-report-vue
go to demo folder and open index.html
Steps to reproduce
Input something into the
Email layout
input field.Put the cursor in the middle of your text.
Hit backspace on the virtual keyboard.
What is Expected?
The text will be removed in the cursor position.
What is actually happening?
The text removes from the end of the string.
selectionStart
attribute is changed somehow by Vue.jsP.S. You can test it on other input elements which do not have
v-model
on it.Everything will work well.The text was updated successfully, but these errors were encountered: