Skip to content

Commit

Permalink
Merge pull request #16186 from primefaces/issue-16169
Browse files Browse the repository at this point in the history
Fixed #16169 - Component: colorPicker - inline=true property doesnt s…
  • Loading branch information
cetincakiroglu authored Aug 8, 2024
2 parents fd850f8 + 0bb5e41 commit b901f01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/components/colorpicker/colorpicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b901f01

Please sign in to comment.