Skip to content

Commit

Permalink
refactor(color-picker): emit selected color even when isn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tiaguinho committed Mar 8, 2018
1 parent 3b6a7be commit f46cb9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/color-picker/color-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ export class MccColorPickerComponent implements AfterContentInit, OnInit, OnDest
if (this._selectedColor !== tmpSelectedColor) {
this._selectedColor = tmpSelectedColor;
this.selected.next(this._selectedColor);
} else {
this.selected.emit(this._selectedColor);
}
}
}
Expand Down

0 comments on commit f46cb9d

Please sign in to comment.