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

Fieldmask with dashes and optional numbers reproduces not wanted dashes when fillingin th eform #1027

Closed
arnevm123 opened this issue Jul 27, 2022 · 1 comment

Comments

@arnevm123
Copy link

arnevm123 commented Jul 27, 2022

🐞 bug report

Is this a regression?

I don't think so

Description

A clear and concise description of the problem...

When making a simple fieldmask containing optional numbers and a separating char ( '/' or '-') the separating char gets duplicated sometimes when filling in the input field.
image

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-mask-qd8dzq?file=src%2Fapp%2Fapp.component.html

🔥 Exception or Error





🌍 Your Environment

Angular Version:

@angular/animations 11.0.2

@angular/common 11.0.2

@angular/compiler 11.0.2

@angular/core 11.0.2

@angular/forms 11.0.2

@angular/platform-browser 11.0.2

@angular/platform-browser-dynamic 11.0.2

@angular/router 11.0.2

ngx-mask 11.1.0

rxjs 6.6.3

tslib 2.0.3

zone.js 0.11.3




Anything else relevant?

@NepipenkoIgor
Copy link
Collaborator

@arnevm123 Hi. Thank you that using ngx-mask. Please use ngx-mask >=14.2.2. Pay attention that perhaps you need migrate to ng12+
Also please check https://stackblitz.com/edit/angular-material-13-starter-x1xj4z-99bgwi?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.ts

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

2 participants