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

Persist Zero in Numeric validator #534

Closed
jainvikram1980 opened this issue Oct 27, 2021 · 1 comment
Closed

Persist Zero in Numeric validator #534

jainvikram1980 opened this issue Oct 27, 2021 · 1 comment

Comments

@jainvikram1980
Copy link

jainvikram1980 commented Oct 27, 2021

Description

Trailing Zero gets removed when assigning a numeric validator with format true.
For example,
Code what we have put is: @Numeric({ allowDecimal: true, isFormat: true })
10.52 will remain 10.52 but 10.50 will become 10.5 as it is removing the trailing 0.

Describe the solution you'd like

It would be good if we introduce one new property like persistZero to persist the zero as entered by users.

@jainvikram1980 jainvikram1980 changed the title Trailing Zero gets removed in Numeric control. Is there any workaround to fix it? Persist Zero in Numeric validator Oct 27, 2021
@ajayojha ajayojha added this to To do in who is doing what? via automation Oct 27, 2021
@ajayojha ajayojha added this to the [email protected] milestone Oct 27, 2021
@ajayojha
Copy link
Member

@jainvikram1980 new version has been released (@rxweb/[email protected]), please update the same.

I am closing this ticket as there is no further action required from our end.

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

No branches or pull requests

2 participants