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

Unable to empty the input #57

Closed
sumityadav opened this issue Jan 28, 2018 · 2 comments
Closed

Unable to empty the input #57

sumityadav opened this issue Jan 28, 2018 · 2 comments

Comments

@sumityadav
Copy link

I am using the min prop.

On page load, the form is empty and the vue-numeric shows the input as empty (which is correct) but after the user key in any number, we do not have the option to empty the input again.

Here's the input:

<vue-numeric type="text" name="amount"
             placeholder="Amount"
             :min="5.00"
             currency="" 
             :precision=2 
             v-model="amount" 
             empty-value=""
></vue-numeric>

Specifications

  • Plugin Version: 2.3.0
  • Vue.js Version: 2.5.13
  • Browser: Chrome Version 63.0.3239.132 (Official Build) (64-bit)
  • OS: MacOS 10.12.6
@mboboc
Copy link

mboboc commented Mar 17, 2022

I have the same problem and I observed that in the documentation it says empty-string's type is Number. If output-type can be set to String, shouldn't empty-string also allow strings? At the moment it ignores empty-string="". 😕

Screenshot from 2022-03-17 14-54-25

@kevinongko
Copy link
Owner

Should be fixed in 2.5.0
please try again

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

3 participants