react-code-input icon indicating copy to clipboard operation
react-code-input copied to clipboard

autoComplete prop not working

Open Ikdemm opened this issue 3 years ago • 1 comments

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

Ikdemm avatar Nov 18 '22 15:11 Ikdemm

same here

JoseVov avatar Jul 12 '24 21:07 JoseVov