From 48e46716593b5a40c7444f69dee6e532a5df3759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=98=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Tue, 12 Nov 2024 16:44:54 +0300 Subject: [PATCH] fix: don't focus blank color, because it's default (#1563) --- projects/editor/components/toolbar-tools/text-color/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/editor/components/toolbar-tools/text-color/index.ts b/projects/editor/components/toolbar-tools/text-color/index.ts index 6f56a8206..0180605fa 100644 --- a/projects/editor/components/toolbar-tools/text-color/index.ts +++ b/projects/editor/components/toolbar-tools/text-color/index.ts @@ -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; }