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

Fix dropdown position when use data-size attribute #2767

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

smiglu
Copy link

@smiglu smiglu commented Aug 2, 2022

When select has a lot of option (in my case 100+) I wanted to limit it to display only the 6 options with scroll. I use attribute data-size set to 6. But when i click to open select, isDropup flag is set to true, and option show above a select but is enough space to display options below button.

Fix #2766

js/bootstrap-select.js Outdated Show resolved Hide resolved
@NicolasCARPi
Copy link
Collaborator

I can't reproduce the issue you describe (with select appearing as dropup). Could you try and have a reproducible case in tests that shows that your fix is useful?

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

Successfully merging this pull request may close these issues.

2 participants