Skip to content

Commit

Permalink
Merge pull request #130 from symflo/patch-root-view-container
Browse files Browse the repository at this point in the history
Fix change detection error when using root view container
  • Loading branch information
sconix authored Aug 3, 2018
2 parents c3aa65f + c4bfd36 commit 295f624
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/color-picker.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export class ColorPickerDirective implements OnChanges, OnDestroy {
}

this.dialog.setColorFromString(changes.colorPicker.currentValue, false);

if (this.cpUseRootViewContainer && this.cpDialogDisplay != 'inline') {
this.cmpRef.changeDetectorRef.detectChanges();
}
}

this.ignoreChanges = false;
Expand Down

0 comments on commit 295f624

Please sign in to comment.