Replies: 2 comments 1 reply
-
I experience the same issue with mask for URLs (run example in CodeSandbox): {
placeholder: "https://",
mask: "https://pathname",
blocks: {
pathname: {
mask: /./,
}
}
} But it is not actually depends on pasting. The mask behaves the same when typing. The problem is, with
I also have an assumption that the ` symbol can help here in some way, but from the documentation I did not understand exactly how it works and when to use it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@uNmAnNeR, thank you for the library! Could you please add an example or some docs about this case? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example: mask
https://f\\acebook.com/x
with x (/[0-9]|[A-Za-z]|_/
) repeated infinitelyWhen I enter value manually, I would like to not see
https://faceb
when I have pressed "b", this is where eager mode is helpful. But enabling it will break UX when user would like to paste full link, which would result inhttps://facebook.com/https://www.facebook.com/group123
Maybe an option like
disableEagerOnPaste: boolean
?@uNmAnNeR have you ever experienced an UX issue like this in apps you use or develop? Is this doable with imaskjs?
Beta Was this translation helpful? Give feedback.
All reactions