v-currency-field icon indicating copy to clipboard operation
v-currency-field copied to clipboard

Initial value not formatted

Open oliveiracdz opened this issue 4 years ago • 3 comments

Hi there!

The initial value is not formatted in latests versions: code. It was working in version 3.0.9.

Thanks!

oliveiracdz avatar Oct 20 '20 13:10 oliveiracdz

Same issue here.

Furthermore, when setting autoDecimalMode to false, the decimal separator is removed and the value is changed because of this. You can try this by changing the autoDecimalMode property in @oliveiracdz's example to false and then clicking into/focusing the currency-field.
In this case the value 1.5 changes to 15 when focusing the field.

Note that this only happens when focusing the field for the first time after the page was loaded.

ToasteR1032 avatar Nov 24 '20 11:11 ToasteR1032

When initial value is 0 it works

klarkc avatar Dec 23 '20 14:12 klarkc

Thank you @klarkc for contribution, I'll check the code and pull your request.

phiny1 avatar Jul 07 '21 15:07 phiny1