Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

Added "cpColorChangeOnInit" to allow disabling of changeEvent OnInit. Defaults to true #55

Closed mwamufiya closed 7 years ago

mwamufiya commented 7 years ago

The current functionality fires as soon as the directive is made available. this prevents the user from applying a 'transparently/no color" to the target.

By adding this Input parameter:

  1. The existing default behavior remains the same and fires OnInit.
  2. If someone has a need of either of the following uses case, they can make use of it.
    • A. Force the user to choose a color
    • B. Considers "no Color" as a valid choice.

Thank you