Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Paste not working #235

Open
Jammy42 opened this issue Nov 23, 2017 · 0 comments
Open

Paste not working #235

Jammy42 opened this issue Nov 23, 2017 · 0 comments

Comments

@Jammy42
Copy link

Jammy42 commented Nov 23, 2017

Pasting a value does not work if there is a "constant" in the placeholder. If using https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html:

For example:

ui-mask = (123) 999-9999, where 123 is a constant prefix. If the value 123 333-3333 is pasted
then the value in the mask is displayed as (123) 123-3333. Basically 123 prefix ist duplicated.

The bug lies in the function unmaskValue(value), where the prefix 123 is not considered during the unmasking.

Any chance that this could be fixed ?

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

No branches or pull requests

1 participant