Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowBlank not allow to start the input as blank #25

Open
david-ad-astra opened this issue Mar 13, 2023 · 2 comments
Open

allowBlank not allow to start the input as blank #25

david-ad-astra opened this issue Mar 13, 2023 · 2 comments

Comments

@david-ad-astra
Copy link

david-ad-astra commented Mar 13, 2023

I am trying to start the input as blank, i have tried pass the value as empty string, null, undefined but it always starts as zero i am using the version 0.1.8 and vue 2.7.14

@joserick
Copy link
Owner

Hi,

In Vue2 or Vue 3, You have to allow the blank field to be used:

...
<script>
  export default {
    data () {
      return {
        amount: null,
        config: {
          ...
          allowBlank: true, // <-- Give permission
          ...
        }
      }
    }
  }
</script>

More information in: https://github.com/joserick/v-money-spinner#properties

Note: In the same way I recommend you move to Vue 3 since I am no longer supporting Vue 2.

@david-ad-astra
Copy link
Author

Hello, seems that is an issue with docs of this version https://github.com/joserick/v-money-spinner/tree/v0.1.8 allowBlank is not implemented yet, but it says in the readme that you can use it.

Is good to know that your are not supporting Vue2, to do a fix by myself or search an alternative. I would like to upgrade to vue3 but is a big project and never there time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants