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

autoComplete prop not working #183

Open
Ikdemm opened this issue Nov 18, 2022 · 1 comment
Open

autoComplete prop not working #183

Ikdemm opened this issue Nov 18, 2022 · 1 comment

Comments

@Ikdemm
Copy link

Ikdemm commented Nov 18, 2022

I have passed autoComplete prop to the component but I still see the suggestions from the browser.
My code:

<ReactCodeInput
    {...input}
    ref={this.setRef}
    type="number"
    fields={4}
    autoFocus={true}
    autoComplete={"off"}
    onChange={(code) => {
      form.mutators.setCode(code);
      if (code.trim().length === 4) {
        this.onSubmit({ code: code });
        form.mutators.clearCode();
      }
    }}
  />

The behavior I get:
image

@JoseVov
Copy link

JoseVov commented Jul 12, 2024

same here

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