Skip to content

Commit

Permalink
fix(select): do not create unnecessary styles when there is no value …
Browse files Browse the repository at this point in the history
…for color
  • Loading branch information
Enlcxx committed Jan 23, 2020
1 parent 9e62585 commit 7fa41bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ export class LyOption extends LyOptionMixinBase implements OnInit, OnChanges {

/** The color of Select */
get _color() {
return this._select._selectionModel.isSelected(this) ? this._select._field.color : '';
return this._select._selectionModel.isSelected(this) ? this._select._field.color : null;
}

get isSelected(): boolean {
Expand Down

0 comments on commit 7fa41bc

Please sign in to comment.