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

Non-decimal value isn't shown with decimals, when mask describes decimals #307

Closed
basvdijk opened this issue Feb 13, 2019 · 5 comments
Closed

Comments

@basvdijk
Copy link

When using for example the dot_separator.2 mask, with a non-decimal value e.g. 12. It is displayed as 12 instead of 12.00 (with two zeroes, as defined by the mask)

@ValeriaKochegarova
Copy link
Contributor

@basvdijk we fixed this you can use it in the latest version

@Thegrep01
Copy link
Contributor

#267

ValeriaKochegarova added a commit that referenced this issue Mar 25, 2019
@ValeriaKochegarova
Copy link
Contributor

@basvdijk we fixed this you can try to use it in the latest version

@basvdijk
Copy link
Author

basvdijk commented Apr 11, 2019

@ValeriaKochegarova Currently not fixed in latest development branch. The model is set to 123.10 which makes no sense for 123.1. The thing is that the textbox itself initially should show 123.10 when the model still is 123.1

image

@Hoogieee
Copy link

Hoogieee commented Feb 4, 2020

Experiencing the same issue in version 8.1.7.
Model value: 10.10
Text input: 10.1

A very ugly workaround I found was to create a custom pipe and whichs adds the missing trailing zeros. So in the example above the model value would become 10.100 and the input text would display it as 10.10.

Would prefer a proper solution of course, so any more information is appreciated.

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

No branches or pull requests

4 participants