Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaskedInputField doesn't support double characters #151

Open
ekus2 opened this issue Nov 24, 2023 · 1 comment
Open

MaskedInputField doesn't support double characters #151

ekus2 opened this issue Nov 24, 2023 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ekus2
Copy link

ekus2 commented Nov 24, 2023

Basic information

  • Tiller version:
    1.7.2
  • Module:
    @tiller-ds/formik-elements

Bug description

Our masked field needs to have constant number at the beginning and at the end of the value for example 1____5.
But when trying to add second number that is the same value as first one (1) it won't enter it.

image

Steps to reproduce

<MaskedInputField
mask={["1", /\d/, /\d/, /\d/, /\d/, /\d/, "5"]}
name="number"
/>

this is the input field we used and here that bug occurs when trying to write 1111115.

@ekus2 ekus2 added the bug Something isn't working label Nov 24, 2023
@ivam5
Copy link
Collaborator

ivam5 commented Nov 29, 2023

We currently believe that the problem lies within the external library being used, specifically text-mask. We have attempted to address the issue using their add-ons; however, a similar bug has already been reported here: text-mask/text-mask#1010. Additionally, we tried implementing a new library - https://www.npmjs.com/package/react-imask. However, we would need to extend the API. We'll have to dedicate additional time to this issue.

@fbeceic fbeceic added the wontfix This will not be worked on label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants