Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete=off is ignore by Chrome #3313

Closed
ncri opened this issue May 4, 2015 · 2 comments
Closed

autocomplete=off is ignore by Chrome #3313

ncri opened this issue May 4, 2015 · 2 comments

Comments

@ncri
Copy link

ncri commented May 4, 2015

Haven't tested other browsers yet, but my chrome offers an autocomplete for my select2 search field despite it having autocomplete=off. Really annoying. Any idea how to fix this?

@ncri
Copy link
Author

ncri commented May 4, 2015

See this: https://code.google.com/p/chromium/issues/detail?id=468153

I worked around it with this code (coffeescript):

setTimeout ->
  $('input.select2-input').attr('autocomplete', "xxxxxxxxxxx")
, 1000

@kevin-brown
Copy link
Member

Closing this off because it's a browser issue, and it's difficult to work around browsers which do not conform to the specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants