You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Allow clear and allow select2 to show results on clear. As shown here : http://imgur.com/VTxtpzh
Use select2 to show some results.
Click outside and close the results panel.
Force select2 (position the element at the bottom of the page) to show results above the input
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
The text was updated successfully, but these errors were encountered:
Prerequisites
master
branch of Select2Steps to reproduce the issue
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
Operating System
Libraries
The text was updated successfully, but these errors were encountered: