Comments (4)
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.
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.
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.
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)
- Clear value of otp box HOT 1
- Continues OTP changes not working. HOT 1
- dynamic Autofocus HOT 2
- In mobile device input focus not working. HOT 4
- Input not disabled when disable option are true HOT 1
- Page jump in iphone on edit. iOS 12 HOT 5
- remove double "backspace" press HOT 4
- In Window, copy and paste OTP code (number only) do not work when CapsLock is on HOT 5
- Build Failed on Angular v.11 HOT 10
- Page jump in latest version of chrome. HOT 1
- Can't find the package imported HOT 11
- Failed to install on angular 13 HOT 4
- Mobile-device input-focus change not working HOT 3
- Clearing OTP field while holding delete/backspace key pressed
- accepts some Arabic letters HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-otp-input.