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

Ignoring prefix in pasted content #1024

Closed
MoxxiManagarm opened this issue Jul 5, 2022 · 3 comments
Closed

Ignoring prefix in pasted content #1024

MoxxiManagarm opened this issue Jul 5, 2022 · 3 comments

Comments

@MoxxiManagarm
Copy link

MoxxiManagarm commented Jul 5, 2022

🚀 feature request

Description

I want the defined prefix to be ignored within pasted strings.

<input mask="AAA-AAA-AAA" prefix="FOO-" />

Currently, when I paste "FOO-DDD-DDD-DDD" on that input field, the value becomes "FOO-FOO-DDD-DDD". But I want the "FOO-" of the pasted content to be ignored.

Describe the solution you'd like

Please let me decide whether or not to ignore the beginning of a string matching the prefix, when the full string is pasted.

Describe alternatives you've considered

@MoxxiManagarm MoxxiManagarm changed the title Ignoring maskPrefix in pasted content Ignoring prefix in pasted content Jul 5, 2022
@MoxxiManagarm
Copy link
Author

MoxxiManagarm commented Jul 5, 2022

Any suggestion for a workaround appreciated.

@Nabeeh-AlSawaf
Copy link

any ideas or updates ?

@andriikamaldinov1
Copy link
Collaborator

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

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