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

Gap left between textinput and selection label after searching, closing and reopening #4848

Closed
6 of 12 tasks
alicansa opened this issue Mar 23, 2017 · 1 comment
Closed
6 of 12 tasks

Comments

@alicansa
Copy link

alicansa commented Mar 23, 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. Allow clear and allow select2 to show results on clear. As shown here : http://imgur.com/VTxtpzh
  2. Use select2 to show some results.
  3. Click outside and close the results panel.
  4. Force select2 (position the element at the bottom of the page) to show results above the input
  5. Either click on the textinput or clear the field using the cross, i.e force the select2 to show the textinput. Result is as shown here: http://i.imgur.com/valcbPM

Expected behavior and actual behavior

When I follow those steps, I see a gap between text input and the selection label which shows the result. The gap is caused by the fact that the results are deleted after the textinput is repositioned. So if another positioning event is triggered afterwards (such as scrolling) the gap disappears.

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • Select2 version: 4.0.3
@alexweissman
Copy link
Contributor

Duplicate of #4614.

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