buberdds / angular-bootstrap-colorpicker

Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.
MIT License
419 stars 226 forks source link

ColorPicker & Slider Issues with a Modal. #61

Closed wcholland-tw closed 8 years ago

wcholland-tw commented 9 years ago

I've been trying to display the colorpicker in a modal window. It looks great but, unfortunately, it doesn't work.

This is the code I'm using to try and render the color picker. This renders things the way I want them to look.

image

image

Whenever I try to use the color picker to select a color, as soon as I click the mouse button, the color is set to "#ffffff". Once the happens, the cursor change and slider quit working.

If I try to use the slider, it jumps straight to "#ff0000".

I've noticed that if I remove the colorpicker-parent attribute from my input, then the selector will begin working but, of course, appears out of place.

image

sourbrew commented 9 years ago

I am also having this issue, and like the above user I was able to resolve the picker not working by removing the parent element, but that more or less botches styling.