= new EventEmitter();
/**
@@ -95,7 +76,7 @@ export class CustomColorEntryComponent implements OnInit{
'background-color': this.defaultFillColorAsRgba
};
this.isDefaultColor = true;
- if (this.strokeColor) {
+ if (this.selectedColor) {
styles = {
'border-color': this.strokeColorAsRgba,
'background-color': this.fillColorAsRgba
@@ -118,6 +99,7 @@ export class CustomColorEntryComponent implements OnInit{
resetColor(){
this.colors[CustomProperties.COLOR_STROKE] = null;
this.colors[CustomProperties.COLOR_FILL] = null;
+ this._selectedColor = null;
this.definePreviewStyle();
}