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

Input masked not accepting leading 0s #1999

Closed
vron opened this issue Feb 21, 2023 · 1 comment
Closed

Input masked not accepting leading 0s #1999

vron opened this issue Feb 21, 2023 · 1 comment

Comments

@vron
Copy link
Contributor

vron commented Feb 21, 2023

Go to https://eufemia.dnb.no/uilib/components/input-masked/ and test e.g. the " Number (decimal limit)" example:

I have two issues:

  1. It's imposiblle to e.g enter 0.01 since it seems to ignore the second 0
  2. It's very hard to add the first 0 - e.g. if you select all the contents and press 0 on the keyboard nothing happends
@tujoworker
Copy link
Member

Hi!

Thanks for getting in touch with your findings 🙏 I think both cases are taken care of in the upcoming v10

  1. In v10 we default to allow a leading zero (mask_options={{ allowLeadingZeroes: true }}). The same example looks to work fine in a random v10 build.
  2. Is probably the same as 1.

I will close this as solved. But feel free to open it again if you think there is more we should align 🙏

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

No branches or pull requests

2 participants