itsjavi / bootstrap-colorpicker

Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
https://itsjavi.com/bootstrap-colorpicker/
MIT License
1.38k stars 367 forks source link

Color picker displays in background in bootstrap modal and when click on it, modal and colorpicker disappear #194

Closed JohnMerlino2 closed 7 years ago

JohnMerlino2 commented 7 years ago

The Color picker displays in background in bootstrap modal and when click on it, modal and colorpicker disappear. This is what it looks like: https://s30.postimg.org/xbe7bzqn5/colorpicker_issue.jpg

itsjavi commented 7 years ago

Sorry, I cannot help you without a working example : https://github.com/itsjavi/bootstrap-colorpicker/blob/master/CONTRIBUTING.md

Tanex commented 7 years ago

Just ran into the same issue. It's caused by the bootstrap class .dropdown-menu overriding the z-index specified in boostrap-colorpicker.css .colorpicker causing it to have a z-index of 1000 instead of 2500 so it ends up behind the modal. I don't have the time at the moment to create a fiddle but hopefully this helps a bit

sguedon commented 7 years ago

Same kind of issue in a modal. colopicker appears at the end of the modal when using container: true or end of body without

image

Once clicked: image

html code