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

Dynamic mask not working on copy/ paste #915

Closed
paulflo150 opened this issue Jul 3, 2021 · 1 comment
Closed

Dynamic mask not working on copy/ paste #915

paulflo150 opened this issue Jul 3, 2021 · 1 comment

Comments

@paulflo150
Copy link

🐞 bug report

Is this a regression?

Don't know

Description

I have a mask function that returns a dynamic mask which changes based on input. The mask works when typing, however copy/ paste appears to always use the most strict mask. For instance if I use '0000 0000 0000 0000 000||0000 0000 0000 0000', and I copy/ paste 4111111111111111111, the text gets formatted as 4111 1111 1111 1111 and it loses the last three digits. Copy pasting again works.

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-tcuqnp

https://stackblitz.com/edit/angular-ivy-tcuqnp

🌍 Your Environment

Angular Version:


Angular: 11.2.7
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.6
@angular-devkit/build-angular   0.1102.6
@angular-devkit/core            11.2.6
@angular-devkit/schematics      11.2.6
@angular/cdk                    11.2.13
@angular/cli                    11.2.6
@angular/material               11.2.13
@schematics/angular             11.2.6
@schematics/update              0.1102.6
rxjs                            6.6.7
typescript                      4.0.7

NepipenkoIgor pushed a commit that referenced this issue May 10, 2022
* fix(#915): issue where dynamic mask not working

* fix(#915): remove console log from test
@NepipenkoIgor
Copy link
Collaborator

@paulflo150 Thank you that using ngx-mask . Please try version >=13.1.13

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