Skip to content

Commit

Permalink
And actually include all the bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Jun 7, 2017
1 parent d518664 commit ab52858
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/color-picker.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { SliderPosition, SliderDimension} from './helpers';
})
export class ColorPickerDirective implements OnInit, OnChanges {
@Input('colorPicker') colorPicker: string;
@Output('colorPickerChange') colorPickerChange = new EventEmitter<string>(true);
@Output('colorPickerSelect') colorPickerSelect = new EventEmitter<string>(true);
@Output('colorPickerChange') colorPickerChange = new EventEmitter<string>(false);
@Input('cpToggle') cpToggle: boolean;
@Output('cpInputChange') cpInputChange = new EventEmitter<any>(true);
@Output('cpSliderChange') cpSliderChange = new EventEmitter<any>(true);
Expand Down Expand Up @@ -78,8 +78,10 @@ export class ColorPickerDirective implements OnInit, OnChanges {
}
let color = this.service.outputFormat(hsva, this.cpOutputFormat, this.cpAlphaChannel === 'hex8');
if (color !== this.colorPicker) {
this.colorPickerChange.emit(color);
this.cdr.detectChanges();
//setTimeout(() => {
this.colorPickerChange.emit(color);
this.cdr.detectChanges();
//}, 0);
}
}

Expand Down

0 comments on commit ab52858

Please sign in to comment.