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

handle paste in ReactCodeInput component #1

Open
mahdij98 opened this issue Jul 24, 2023 · 1 comment
Open

handle paste in ReactCodeInput component #1

mahdij98 opened this issue Jul 24, 2023 · 1 comment

Comments

@mahdij98
Copy link

mahdij98 commented Jul 24, 2023

when im trying to paste a number it will paste it in the first box only :

import ReactCodeInput from "react-code-input";
<ReactCodeInput
                  inputStyle={{
                    fontFamily: "iranYekan",
                    margin: "6px",
                    MozAppearance: "textfield",
                    textAlign: "center",
                    borderRadius: "6px",
                    fontSize: "20px",
                    backgroundColor: "#E2E4F3",
                    color: "#000",
                    border: "none",
                    padding: "4px",
                    outlineColor: "#7067ff",
                  }}
                  inputStyleInvalid={{
                    fontFamily: "iranYekan",
                    margin: "4px",
                    MozAppearance: "textfield",
                    width: "15px",
                    borderRadius: "6px",
                    fontSize: "14px",
                    height: "26px",
                    padding: "4px",
                    backgroundColor: "black",
                    color: "red",
                    border: "1px solid red",
                  }}
                  name={""}
                  inputMode={"tel"}
                  type="number"
                  fields={5}
                  // {...codeInputProps}
                  onChange={(value: any) => {
                    setCodeValue(value);
                    setEmailErros("");
                  }}
                  value={codeValue}
                />
            my version is 8.19.2
@srsholmes
Copy link
Owner

Please explain your issue more clearly so I can understand it better.

Please provide an example of the bug, maybe using something like codepen.

I'll do my best to help you! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants