Enhancement - Lazy Masking Option #693
Replies: 2 comments 1 reply
-
Hi @aaronhargrove-grub Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Hi @nikhil-varma, do you remember a reason why this wouldn't be possible? The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue and the actual behavior
Hey! Love the library, I just have one use case that isn't quite covered. When using masking, I'd like the ability to "partially" apply the mask, so I can only show the automatically added characters up to the point the user has typed. #392 Illustrated the problem, but it also applies to regular inputs when I don't want the non-numerics to show before they have to.
Describe the expected behavior
If a prop like
lazy
is passed, the formatted output would only include the format up to the point the user has typed.For example. If the user has typed
"123456"
, mask char is'_'
, and the pattern is"(###) ###-####"
. The expected output would be like:"(123) 456-____"
"(123) 456"
And possibly even an option for being eager about including the next character?
"(123) 456-"
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions