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 is not working #172

Open
bradmurray opened this issue Oct 1, 2015 · 1 comment
Open

autocomplete is not working #172

bradmurray opened this issue Oct 1, 2015 · 1 comment

Comments

@bradmurray
Copy link

When you set the autocomplete to a property to a value from https://html.spec.whatwg.org/multipage/forms.html#autofill-field the select box is not automatically set by a form filler like Chrome or LastPass. Normal select boxes get set by these. An example would be a select box for country in an address form or the expiration month and year for a credit card on a form.

@kitsunde
Copy link

kitsunde commented Nov 21, 2016

Auto complete is working with the underlying select, which makes it very confusing to users. To work around you'll need to manually listen to the change event fired by autocomplete and set the select box value:

$('select').selectBox().on("change", function(){
  $(this).selectBox("value", $(this).val());
});

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