ruhley / angular-color-picker

Vanilla AngularJS Color Picker Directive with no requirement on jQuery
http://ruhley.github.io/angular-color-picker/
MIT License
166 stars 79 forks source link

call update function when close #172

Closed ddkkinf closed 7 years ago

ddkkinf commented 7 years ago

(to check and reformat value if wrong format value is inserted.)

we use with this options in our project

<color-picker options="{required: true, format:'hexString', restrictToFormat: false, alpha: false}" name="..." ng-model="..." required/>

if someone insert hex value directly (ex : FC11DE) without using color-picker the expected result is #FC11DE but hexString not be reformatted

I think update value when color-picker is closed is better