Skip to content

Commit

Permalink
fix: don't focus blank color, because it's default (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 12, 2024
1 parent ce1af38 commit 48e4671
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class TuiTextColor implements OnInit {
this.fontColor$ =
this.editor?.stateChange$.pipe(
map(() => this.editor?.getFontColor() ?? this.options.blankColor),
map((color) => (color === this.options.blankColor ? '' : color)),
distinctUntilChanged(),
) ?? null;
}
Expand Down

0 comments on commit 48e4671

Please sign in to comment.