GithubHelp home page GithubHelp logo

Comments (4)

pkovzz avatar pkovzz commented on June 10, 2024

Hey @Shreyabhanot!
Thanks for opening the issue. Could you reproduce the same behavior in other browsers too? Chrome tends to ignore the autocomplete="off" attribute.

from ngx-otp-input.

Shreyabhanot avatar Shreyabhanot commented on June 10, 2024

Hey @pkovzz !
It was not working because ngx-otp-input is only a wrapper for input elements. Resolved by manipulating the inside input elements.
Check the below link for the resolution
https://stackoverflow.com/questions/76051809/not-able-to-turn-off-auto-complete-for-ngx-otp-input-in-angular

from ngx-otp-input.

wescleysrn avatar wescleysrn commented on June 10, 2024

Hello @Shreyabhanot and @pkovzz

I am experiencing the same problem, I noticed that if I include in the settings isPasswordInput: true the auto complete stops occurring as expected. And as described in this link:

https://pt.stackoverflow.com/questions/61510/como-remover-auto-complete-de-input-do-google-chrome

In current versions of Google Chrome it is possible to solve this if autocomplete="off" is in the form tag.

Suggestion:

Modify the file receiving the boolean autocomplete definition received from the NgxOtpInputConfig interface.
https://github.com/pkovzz/ngx-otp-input/blob/master/projects/ngx-otp-input/src/lib/component/ngx-otp-input.component.html

Modify the file by making the NgxOtpInputConfig interface have the autocomplete configuration property.
https://github.com/pkovzz/ngx-otp-input/blob/master/projects/ngx-otp-input/src/lib/component/ngx-otp-input.model.ts

Does that make sense to you? Is this a good approach to solving the problem?

from ngx-otp-input.

pkovzz avatar pkovzz commented on June 10, 2024

Hello @wescleysrn!

Thank you very much for your effort to fix this issue. To be honest, I'm not really satisfied with the current state of the library, so I've decided to rewrite it in the near future, including this and other fixes as well. Since I can't tell you exactly when this will happen, if you have a strict deadline, I suggest checking other OTP libraries too.

from ngx-otp-input.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.