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

Position of the options does not change when multi select grows in height #4899

Closed
11 of 16 tasks
jklapwijk opened this issue May 9, 2017 · 2 comments
Closed
11 of 16 tasks

Comments

@jklapwijk
Copy link

jklapwijk commented May 9, 2017

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • The issue still exists against the latest master branch of Select2
  • This is not a usage question (Those should be directed to the community)
  • I have attempted to find the simplest possible steps to reproduce the issue
  • I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

  1. Go to this jsfiddle: http://jsbin.com/gixemazama/1/edit?html,js,output
  2. add option B to the selection

Expected behavior and actual behavior

The input with the selected options is now higher and contains option B, but the option list remains on the same spot, so it is in front of the selected options and therefore the selected option B is not visible.

I was expecting that the option list would be attached to the bottom of the selection list and therefore would move down.

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Edge

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version: 3.2.1
  • Select2 version: 4.0.3

Isolating the problem

  • This bug happens on the examples page
  • The bug happens consistently across all tested browsers
  • This bug happens when using Select2 without other plugins
  • I can reproduce this bug in a jsbin
@alexweissman
Copy link
Contributor

Confirmed problem, and updated jsbin: http://jsbin.com/nolajupeco/1/edit?html,js,output

@alexweissman
Copy link
Contributor

alexweissman commented Sep 17, 2017

Actually, just realized that this is a duplicate of #4511 and #4377.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants