Skip to content

Commit

Permalink
Fixed bug with inline dialog color initialization, fixes #148
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Nov 29, 2018
1 parent 88d2bfe commit ad4f899
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/color-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewInit {

public setInitialColor(color: any): void {
this.initialColor = color;

if (this.cpDialogDisplay === 'inline') {
this.cdRef.detectChanges();
}
}

public setPresetConfig(cpPresetLabel: string, cpPresetColors: string[]): void {
Expand Down

0 comments on commit ad4f899

Please sign in to comment.