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

Clarify numeralIntegerScale #204

Closed
adnasa opened this issue Jul 18, 2017 · 10 comments
Closed

Clarify numeralIntegerScale #204

adnasa opened this issue Jul 18, 2017 · 10 comments
Assignees
Labels

Comments

@adnasa
Copy link

adnasa commented Jul 18, 2017

Hey @nosir,
thanks for this project.


You ought to clarify what numeralIntegerScale entails in the docs, would have especially helpful if your releases included a breaking change section

In one project, we found out that this has affected all numerical values (including inputs which represented a money value such as a price of a product) of our app, where the value exceeded the length of 10 (default value to numeralIntegerScale)

ref: #196

@nosir
Copy link
Owner

nosir commented Jul 18, 2017

Hey, do you mean this? https://github.com/nosir/cleave.js/blob/master/doc/options.md#numeralintegerscale

But I agree, 10 is not an ideal default value, will change to make it backward compatible

@nosir nosir self-assigned this Jul 18, 2017
@adnasa
Copy link
Author

adnasa commented Jul 18, 2017

yes, that is the option I was referring to.

possible solution:
either that, or you have it disabled when no value is given upon mount.

@tdeekens
Copy link

I would disable defaulting to any numeral integer scale as it might confuse people. Whenever they opt into it, it's an explicit choice.

@nosir
Copy link
Owner

nosir commented Jul 18, 2017

Okay, will fix.

@adnasa
Copy link
Author

adnasa commented Jul 19, 2017

@nosir with the upcoming fix, will it be compatible with numeralIntegerScale: 0 for disabled?
at the moment we set numeralIntegerScale to 0 to disable it

@nosir
Copy link
Owner

nosir commented Jul 19, 2017

Yes, either 0 or no value is given will disable the integer scale, so it will be fine in your case.

@adnasa
Copy link
Author

adnasa commented Jul 19, 2017

perfect, @nosir 👌🏽
I like this.
looking forward to your update

@nosir
Copy link
Owner

nosir commented Jul 23, 2017

Hi guys, fix released:
https://github.com/nosir/cleave.js/releases/tag/v0.9.0
Cheers

@nosir nosir added resolved and removed ongoing... labels Jul 23, 2017
@nosir nosir closed this as completed Jul 23, 2017
@tdeekens
Copy link

Thanks a lot!

@adnasa
Copy link
Author

adnasa commented Jul 24, 2017

thanks @nosir 👌🏾

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

No branches or pull requests

3 participants