rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

"dropdownParent" not working properly #80

Closed pedroivodev-ZZ closed 6 years ago

pedroivodev-ZZ commented 6 years ago

When I was using the "pure" select2 the "dropdownParent" option was usually implemented using something like this " { dropdownParent: $(this.refs.someParentDiv) } ". Now that need to use "react-select2-wrapper" this seems not working in the "Select2" component avaiable int your select2-wrapper. I would like to know if I'm doing something wrong or if it's some bug. I really need to fix this because I'm using the select2 inside a modal from bootstrap and it keeps "locking" the scroll because i can't set properly the "dropdownParent".

rkit commented 6 years ago

https://github.com/rkit/react-select2-wrapper/tree/master/guide#parent-element-for-dropdown