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

How to make it accept whole number? #175

Open
tapasbose opened this issue Dec 1, 2022 · 0 comments
Open

How to make it accept whole number? #175

tapasbose opened this issue Dec 1, 2022 · 0 comments

Comments

@tapasbose
Copy link

Hello,
I am using the following configuration:

{
  align: 'left',
  allowNegative: false,
  decimal: '.',
  precision: 2,
  prefix: '₹',
  suffix: '',
  thousands: ','
};

If I want to enter 100, and if I type 100, it masks into ₹1.00, I need to type 100.00 explicitly.

Is there any way to have the behavior in a way, that if I don't type decimal and just enter the whole number, it will automatically mask it into a decimal number with precision 2?

Thanks and regards,
Tapas

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

1 participant