Coder Social home page Coder Social logo

Comments (3)

phiny1 avatar phiny1 commented on July 20, 2024

I think thats is null min and max... try:

 modules: [
    '@nuxtjs/pwa',
    ['v-currency-field/nuxt-treeshaking', {
      locale: 'pt-BR',
      decimalLength: 2,
      autoDecimalMode: true,
      min: undefined,
      max: undefined,
      defaultValue: 0,
    }],
  ],

You can use the stable version 3.0.7. I recently updated vue-currency-input version and have to change somethings in version 3.0.8 that could not work properly.

yarn add [email protected]
npm install [email protected]

I think I will need to work around with null values that vue-currency-input dont check.

from v-currency-field.

AlexVFornazieri avatar AlexVFornazieri commented on July 20, 2024

Thanks @phiny1 , all works after install v3.0.7. Min and max props don't solve the error in current version, in stable version, never mind, works with null or undefined.

from v-currency-field.

OlivierVerhaegen avatar OlivierVerhaegen commented on July 20, 2024

Hi, this error is still thrown when using undefined as defaultValue. Solved with using null tho.
Thought I'd share. Thanks for the awesome library!

Vue.component('v-text-field', VTextField);
Vue.use(VCurrencyField, {
  locale: 'nl-NL',
  decimalLength: 2,
  autoDecimalMode: false,
  min: null,
  max: null,
  distractionFree: false,
  defaultValue: undefined
});

v-currency-field.esm.js?a563:393 Uncaught RangeError: Maximum call stack size exceeded.
at dispatchEvent$1 (v-currency-field.esm.js?a563:393)
at format (v-currency-field.esm.js?a563:717)
at applyFixedFractionFormat (v-currency-field.esm.js?a563:656)
at HTMLInputElement.eval (v-currency-field.esm.js?a563:775)
at dispatchEvent (v-currency-field.esm.js?a563:112)
at input (v-currency-field.esm.js?a563:1082)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at VueComponent.invoker (vue.runtime.esm.js?2b0e:2175)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at VueComponent.Vue.$emit (vue.runtime.esm.js?2b0e:3888)

from v-currency-field.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.