Skip to content

Color picker preview color is wrong after changing hue #7749

@cadilhac

Description

@cadilhac

Describe the bug

If you click the preview color and open the color selector (made of a hue bar and a big square showing all luminosities and saturations of the selected hue), then click a color in the big square, the preview box will update. Now click the hue bar. The big square will update with the new hue but the preview box will show an invalid color relatively to the selected color in the big square (displayed by a small circle).

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

N/A

Environment

N/A

Vue version

3.5.13

PrimeVue version

4.3.4

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

Simply try in a demo of the page https://primevue.org/colorpicker/

Expected behavior

After following my instructions, the preview box should show a color relatively to the new hue and the current luminosity and saturation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Help WantedIssue or pull request requires extra help and feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions