Enter a number with some zeros after the comma into a type="number" input field, while Vue performs some page rendering in the background with (unrelated) variables of the same component.
Entering a number like 1.00001 works without issues.
Every time Vue triggers a DOM change all v-model input fields are "re-rendered" ("0.000" -> "0") which makes it impossible to enter decimal numbers that contain zeros in busy components. While this sounds like a minor issue it is a huge problem, since the entered number could be completely wrong. Imagine entering 1.00345, but the input is silently changed to 1345. This has already led to some serious trouble in our (financial) Vue application.
When input gets focused and the user is inputing something, the input value property should not be updated. I'll make a patch.
The same problem with trim modifier, I'll try to fix it together.
avoid v-model with .trim/.number updating value when in focus (fix #4392
proper fix for #4392 (via #4402)
Hey @patrickb1991 , sorry for the potential problems this have caused in your app. Before a new release is out, you can build Vue from the dev branch locally to see if it fixes your issue.
No problem @yyx990803! Thanks for your great work and the fast fix.