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

With livesearch, when keypress, focus to search field isn't working #1245

Closed
HenriqueSPin opened this issue Dec 23, 2015 · 1 comment
Closed

Comments

@HenriqueSPin
Copy link

I did wrapped the .focus() method on a setTimeout in line 1455. And give to the searchbox a new value of what was typed.

setTimeout(function() {
    that.$searchbox.val(String.fromCharCode(e.which)).focus();
}, 0);
@authanram
Copy link

Solution: return; right after that.$searchbox.focus(); at line 1480 (v1.10.0).
We're in (!isActive ...) { ... }. So no further processing is needed after focusing the the search field.

avantika-gupta-jtg pushed a commit to JoshLabs/bootstrap-select that referenced this issue May 14, 2020
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