Recommend this page to a friend! |
Classes of fathurrahman | mnTemplate | public/asset/vendor/select2/docs/pages/02.troubleshooting/02.common-problems/docs.md | Download |
|
Download title: Common problems metadata:
taxonomy:
Select2 does not function properly when I use it inside a Bootstrap modal.This issue occurs because Bootstrap modals tend to steal focus from other elements outside of the modal. Since by default, Select2 attaches the dropdown menu to the To avoid this problem, you may attach the dropdown to the modal itself with the dropdownParent setting:
This will cause the dropdown to be attached to the modal, rather than the Alternatively, you may simply globally override Bootstrap's behavior:
See this answer for more information. The dropdown becomes misaligned/displaced when using pinch-zoom.See #5048. The problem is that some browsers' implementations of pinch-zoom affect the The solution is to use |