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
Dropdown does not reposition when multiple selections cause the input to increase in height #4511
Comments
I have the same issue. Same versions of jQuery/select2. |
I had the same issue and commented this line:
|
Thanks @derrick13 - this will solve a variation of this issue, but didn't solve my main problem. For me, this issue is focused on the fact that the "select2-container--open" element when "select2-dropdown--below" is not repositioned after a selection is made when closeOnSelect: false. The "select2-selection select2-selection--multiple" span element wraps to multiple lines, but the results dropdown doesn't reposition below the span. It ends up overlaying over lines 2+. Using your tip, from my research, it looks like the AttachBody decorator needs to somehow watch when a selection is made and possibly call its _positionDropdown method, just like it sets up in _attachPositioningHandler. I'm just unfortunately new in the codebase to efficiently make the right fix in the time I have right now. |
This actually is a duplicate of #4377. Please continue any discussion about this problem over there. |
Prerequisites
master
branch of Select2Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
The dropdown remains in the same position despite that the actual input has now grown in height. This blocks all selections on line 2 and beyond.
I was expecting...
The dropdown should reposition itself again so that it remains below the expanded input.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: