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

onClick w/o Drag new color not updated for call-back #151

Open aschroederSportsdigita opened 7 years ago

aschroederSportsdigita commented 7 years ago

When opening the color-picker I simply click on a new area for a new color and listen for 'colorpicker-selected' to be emitted. The callback does not return to me the new color value and instead the previous one that was selected.

This works perfectly if you drag around the cross-hairs and let go, just not for a single click.

jmacdonald01 commented 7 years ago

Thank you, @aschroederSportsdigita! I will be using your branch until it is merged.