From 0bb5e41bcea2b589daf0dddb3b2e92707ed6349f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:57:39 +0300 Subject: [PATCH] Fixed #16169 - Component: colorPicker - inline=true property doesnt set the appropriate color --- src/app/components/colorpicker/colorpicker.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/components/colorpicker/colorpicker.ts b/src/app/components/colorpicker/colorpicker.ts index fb2c2593dd0..ef242fc3bf6 100755 --- a/src/app/components/colorpicker/colorpicker.ts +++ b/src/app/components/colorpicker/colorpicker.ts @@ -401,9 +401,11 @@ export class ColorPicker implements ControlValueAccessor, OnDestroy { this.value = this.HEXtoHSB(this.defaultColor); } - this.updateColorSelector(); - this.updateUI(); - this.cd.markForCheck(); + setTimeout(() => { + this.updateColorSelector(); + this.updateUI(); + this.cd.markForCheck(); + }); } updateColorSelector() {