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

Not computing decimal

Open leobezr opened this issue 4 years ago • 2 comments

Even with option autoDecimalMode set to true, v-currency-field is setting value multiplied by 100. Removing dots and commas from the number.

0,55 becomes 55,00.

Version: 3.1.0 Bug version: 3.0.8

Vue.use(VCurrencyField, { 
  locale: 'pt-BR',
  currency: "BRL",
  decimalLength: 2,
  autoDecimalMode: true,
  min: null,
  max: null,
  defaultValue: 0
})

leobezr avatar Sep 08 '20 20:09 leobezr

@leobezr Could you create an example code with the problem? Its not happening in my tests:

Example: https://codepen.io/phiny1/pen/YzPLOam

phiny1 avatar Oct 02 '20 14:10 phiny1

I just noticed this issue. We're experiencing the same as @leobezr. If we do ,30 it becomes 30,00 but if we do ,3 it works and sets ,30.

Your example @phiny1 seems to just ignore any decimal inputs and instead just leave the last 2 numbers inserted as decimals

michaelrachlitz avatar Apr 25 '23 08:04 michaelrachlitz