primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Component: Color Picker - Pop-up not showing the full palette when clicked, just the current selected colour

Open Eagle-Tim opened this issue 1 year ago • 8 comments

Describe the bug

When using the color picker, on clicking the button to show the popup, it is just showing a single square of one colour (the currently selected colour), rather than a full palette of colours. The slider also shows no colours

image

Note, this screenshot is taken from the Stackblitz linked to from PrimeNg's documentation

Environment

Windows

Reproducer

https://stackblitz.com/edit/acucgw?file=package.json

Angular version

17.3.10

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.14.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Set up a color picker component
  2. Click the button to open it

Color picker pop-up only shows one colour (the selected one), and slider is blank

Expected behavior

Normal color palette and slider is shown

Eagle-Tim avatar Sep 27 '24 08:09 Eagle-Tim

I got the same issue. Also happened like 5 days ago. It seems like the ./media/hue.png and ./media/color.png are missing.

simonstaffgenius avatar Oct 02 '24 07:10 simonstaffgenius

I got the same issue after updating to 17.18.11.

image

daniel1919-00 avatar Oct 04 '24 08:10 daniel1919-00

Have the issue with color picker with inline mode as well. I updated to 17.18.11 tried to rollback to my previous version 17.18.5 and the issue persists

PrimeFactor7 avatar Oct 13 '24 19:10 PrimeFactor7

As a temporary workaround, you can replace the files under node_modules/primeng/resources/images.

For color.png use: color

For hue.png use: hue

Note: This only works temporarily until you reinstall your packages.

simonstaffgenius avatar Oct 14 '24 10:10 simonstaffgenius

@PrimeFactor7

Have the issue with color picker with inline mode as well. I updated to 17.18.11 tried to rollback to my previous version 17.18.5 and the issue persists

reverting to 17.18.10 worked for me

arnoudb avatar Oct 21 '24 09:10 arnoudb

Can confirm, seems like both PNG files are corrupted - after rolling back to 17.18.10, the PNGs load correctly.

deancanen avatar Nov 06 '24 13:11 deancanen

Related to issue #13820

I'm currently using the version 17.18.10. The PNG still not loading for me.

Thanks to @mrafiqk for a good workaround:

/* You can add global styles to this file, and also import other style files */
.p-colorpicker-panel .p-colorpicker-color {
	background: transparent url("assets/img/custom-color.png") no-repeat left top
}


.p-colorpicker-panel .p-colorpicker-hue {
	background: transparent url("assets/img/custom-hue.png") no-repeat left top !important;
}

faelpinho avatar Nov 07 '24 05:11 faelpinho

I just downloaded the images and inserted them manually as well 👍 Perfect workaround for now Other Issue Ticket

rickstick-code avatar Nov 14 '24 08:11 rickstick-code

See https://github.com/primefaces/primeng/issues/13820#issuecomment-2564833659

ThoSap avatar Dec 29 '24 20:12 ThoSap

Please try; https://github.com/primefaces/primeng/issues/13820#issuecomment-2859607717

mertsincan avatar May 07 '25 17:05 mertsincan