-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Programmatically open the menu #950
Comments
I do need the same behaviour, but your solution doesn't work for me. |
If you want it just to open as soon as the selectpicker is applied, you can just provide the open class on the original select element. |
In case anybody looking for the same thing. Open Menu Close Menu |
Is there a way to keep it always open? |
@turigeza Just use the open & close methods for that: http://silviomoreto.github.io/bootstrap-select/methods/#selectpickerhide @MilenFrom apply the open class on the select (in html) |
Hi @Jogai I tried this and didn't work. Code: |
how do you initialize the component? |
Hi @Jogai First I've set a custom class to the form and initialized Bootstrap-Select for it. You can see the demo to see it how its working. On the same site you can see other forms without this feature but with another class and they're working just fine. |
Ok, you want it to stay open, thats slightly different. This should be enough (though not compatible with screenreaders, like yours):
I think the better solution is to cancel the close event. |
Is there a way to programmatically open the menu same effect as click the button to open, currently I am using this:
The text was updated successfully, but these errors were encountered: