Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: colorPicker - inline=true property doesn't set the appropriate color #16169

Closed
vmuresanu opened this issue Aug 5, 2024 · 0 comments · Fixed by #16186 · 4 remaining pull requests
Closed

Component: colorPicker - inline=true property doesn't set the appropriate color #16169

vmuresanu opened this issue Aug 5, 2024 · 0 comments · Fixed by #16186 · 4 remaining pull requests
Assignees
Labels
LTS-FIXED-15.4.26 LTS-FIXED-16.9.15 LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@vmuresanu
Copy link
Contributor

vmuresanu commented Aug 5, 2024

Describe the bug

When setting inline = true to p-colorpicker, the colorpicker defaults to black.

Environment

Mac OS

Reproducer

https://stackblitz.com/edit/github-4fz6wx-5sc5by?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html

Angular version

17.3.4

PrimeNG version

17.13.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.0.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Set <p-colorPicker [inline]="true" /> and attach a reactive form control to it
  2. Default the control to some hex value
  3. Render the app

Expected behavior

  1. Colorpicker has to be defaulted to the specified color

ACTUAL Behavior:

  1. Colorpicker default to black color

NOTE: With inline = false or with ngModel + inline true - colorpicker works as expected

@vmuresanu vmuresanu added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 5, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 7, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.18.8 milestone Aug 7, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Aug 7, 2024
cetincakiroglu added a commit that referenced this issue Aug 8, 2024
Fixed #16169 - Component: colorPicker - inline=true property doesnt s…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment