40818419 / react-code-input

React component for entering and validating PIN code.
MIT License
314 stars 129 forks source link

autoComplete prop not working #183

Open Ikdemm opened 1 year ago

Ikdemm commented 1 year ago

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 commented 2 months ago

same here