Skip to content

autoComplete prop not working #183

@Ikdemm

Description

@Ikdemm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions