RegEx not working in IMaskInput #1005
-
I cannot get my RegEx mask to work in the IMaskInput. I copied the code from the example, here is my code; `import { useRef } from "react"; export const TestForm = () => { return ( In my test, I can enter the first one or two digits, but the comma is never accepted. I have tried all three different values for the unmask prop (true | false | 'typed'), but I get the same results. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @easoftwareGit, Your regexp does not match incomplete string like “1,”. But it should match any of intermediate value also. Or you probably can use number mask for it. |
Beta Was this translation helpful? Give feedback.
Hi @easoftwareGit,
Your regexp does not match incomplete string like “1,”. But it should match any of intermediate value also. Or you probably can use number mask for it.