RedMadRobot / input-mask-android

User input masking library repo.
MIT License
1.21k stars 114 forks source link

Wrong result #78

Closed sm2017 closed 5 years ago

sm2017 commented 5 years ago

Prerequisites

Describe the bug

I am using https://www.npmjs.com/package/react-native-text-input-mask that use input-mask-android as it's core , I have issue with mask [________]-[____]-[____]-[____]-[____________]

Steps to reproduce the behaviour:

I use mask [________]-[____]-[____]-[____]-[____________] for uuid mask , but when I type 2 char , cursor jumps to first location, i.e. you want type hfd50437-64d8-488e-9da2-e6f450c98626 , you type Hfd5 but result is D5Hf

Expected behaviour When you type you type Hfd5 result must be Hfd5

Screenshots If applicable, add screenshots to help explain your problem.

Platform information

taflanidi commented 5 years ago

Hey @sm2017,
While reading our known issues section, it seems that you've totally missed this one, which sounds exactly like your bug description. Please go ahead and check it out!

This library you've mentioned is heavily outdated. For instance, see this pull request.
Our "core" has already reached v.4, while you are probably using 2.3.0.

IMO, it's completely up to you to kick gently remind the library maintainer about updating the internals.

sm2017 commented 5 years ago

@taflanidi OK , thank you