You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually caused by the way v-model restores the cursor position after updating the <input>'s value. I've adjusted the restoring algorithm to work in your example, because it seems to be the more common use case.
Another thing is you should be using a write filter instead of a read one.
Hello!
When using
v-model
on input (for example) along with a filter there is lag between input value and vm data value.You can see it on example (try typing some numbers into input):
http://jsfiddle.net/alekzonder/tw22zu3z/3/
If value is modified by the filter, there is always a lag.
Had to add something like that to fix the problem:
http://jsfiddle.net/tw22zu3z/55/
Don't know if it's a bug or a feature, but I would like to get some easy method to sync those values.
The text was updated successfully, but these errors were encountered: