Chosen dropdown within Bootstrap modal is hidden behind modal footer

百般思念 提交于 2019-11-30 18:28:53

For z-index to work, you also have to set position = relative, absolute, or fixed. Also putting z-index something like 5000 might help. (the modal is at a z index in the 2000's.

so in your css i would add this:

.class-of-dropdown {
    position: relative;
    z-index: 5000;
}

Edit: .modal-body class has a overflow-y: auto property. You might need to change this to:

.modal-body {
    overflow-y:visible;
}

I was also having this same problem and couldn't get @hajpoj's to work. I did get it working by setting the following css:

.modal-body { 
    position: static; 
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!