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

Leadzero do not work on blur, but only after refresh page #1182

Closed
gerwinbouwhuis opened this issue Jun 27, 2023 · 6 comments
Closed

Leadzero do not work on blur, but only after refresh page #1182

gerwinbouwhuis opened this issue Jun 27, 2023 · 6 comments
Labels

Comments

@gerwinbouwhuis
Copy link

gerwinbouwhuis commented Jun 27, 2023

🚀 feature request

Hi there!

Leadzero is fixed in #1115,
if you use it with as example:
separator.3
leadzero=true

and you type in the input 10.2 and you go outside the input field, the value is not update to 10.200,
only after refresh the page.

I think it would be nice if the value is updated also on blur.

@NepipenkoIgor
Copy link
Collaborator

@gerwinbouwhuis Hi . Could you provide stackblitz

@gerwinbouwhuis
Copy link
Author

gerwinbouwhuis commented Jun 27, 2023

NepipenkoIgor pushed a commit that referenced this issue Jul 6, 2023
* fix(#1186): fix 1186

* fix(#1186): fix 1186
@andriikamaldinov1
Copy link
Collaborator

@gerwinbouwhuis Thanks for your using Ngx-Mask. Please update to latest version.
It example, all work as expected - https://stackblitz.com/edit/stackblitz-starters-eny7fx?file=src%2Fmain.ts

@gerwinbouwhuis
Copy link
Author

gerwinbouwhuis commented Jul 7, 2023

@andriikamaldinov1 It works not as I expected, when I type 10.2 in de input field and I unfocus the input field, the values updates not to 10.200 in the input field.

@andriikamaldinov1
Copy link
Collaborator

@gerwinbouwhuis Please update to latest version.
It example, all work as expected - https://stackblitz.com/edit/stackblitz-starters-bdozqb?file=src%2Fmain.ts

@gerwinbouwhuis
Copy link
Author

@andriikamaldinov1 Thank you very much for the quick fix, it works as expected :)

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