vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.73k forks source link

Select2 Dropdown offset #1106

Open carlosmarcelomorales opened 5 years ago

carlosmarcelomorales commented 5 years ago

I'm having a problem when using select2 with multiple tags. The problem is that when the dropdown it's oppened it goes to the bottom of the page and not over the input.

Anyone had this problem too?

mlt commented 5 years ago

You might have an issue with CSS. But give a try to the following...

I'm not sure whether you use bootstrap or not. If so, popover is used to host the input. By default, select2 inserts itself into body tag. This causes lots of issues such as leaving remnants of select2 if popover gets closed, z-index mess, etc.

You might give a try to select2: {dropdownParent: '.popover'} option, but you'd also need https://github.com/select2/select2/pull/5373

zpforcoding commented 3 years ago

I'm having a problem when using select2 with multiple tags. The problem is that when the dropdown it's oppened it goes to the bottom of the page and not over the input.

Anyone had this problem too? Igot the same problem,I wonder know have you fixed this bug? If you have, please give me some suggestions,thanks!