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

Show dropdown on focus #710

Open
sirNemanjapro opened this issue Aug 24, 2014 · 4 comments
Open

Show dropdown on focus #710

sirNemanjapro opened this issue Aug 24, 2014 · 4 comments
Milestone

Comments

@sirNemanjapro
Copy link

Hi,

I have been searching for a way to open or show the dropdown in a form when I focus on it, The idea behind it was that you are filling out a form, switching to the next element by keyboard using Tab and when you get to the dropdown it is automatically shown when focused.

Right now, its working in a way that you first select the dropdown with Tab, then use a Down arrow key on the keyboard to show the dropdown. I wanted to reduce user action needed for showing the dropdown from 2 to 1 (just Tab).

@t0xicCode
Copy link
Collaborator

You can listen for the focus event and call the show method of the selectpicker.

@sirNemanjapro
Copy link
Author

@t0xicCode Sorry, can you give me an example?

@yazeed
Copy link

yazeed commented Oct 8, 2014

I need this as well, $('.selectpicker').selectpicker('show') does not seem to be working for me to bring up the list upon gaining focus or even through firing it via a button.

@bassrock
Copy link

@t0xicCode do you have an example? Or anyone else? I am looking to get it to show when a user tabs to the control, there is the selectOnTab, which helps when a user tabs out but not when they tab in.

@caseyjhol caseyjhol added this to the v1.13.0 milestone Jul 28, 2017
@caseyjhol caseyjhol modified the milestones: v1.13.0, v1.14.0 Aug 29, 2018
@caseyjhol caseyjhol modified the milestones: v1.14.0, v1.15.0 May 7, 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

5 participants