insin / insin/react-maskedinput

Support for special characters

Open
#48 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
727
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to use the `formatCharacters` feature to transform special characters. Specifically japanese numbers (e.g., `1`, `2`, etc.) to the right alpha numbers.

I tried configuring it through `formatCharacters` but the `transform` function seems to never trigger. I did some debugging and tracked the problem to this line https://github.com/insin/react-maskedinput/blob/master/src/index.js#L72 which basically will have `e.target.value` set to `12/__` but `this.mask.getValue()` overwrites it to `1_/__`.

Please let me know if I'm missing something or if there's another way to do this.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.