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

colorPicker: change event only shows old color value #5004

Closed
yureckey opened this issue Dec 27, 2023 · 0 comments · Fixed by #5109
Closed

colorPicker: change event only shows old color value #5004

yureckey opened this issue Dec 27, 2023 · 0 comments · Fixed by #5109
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@yureckey
Copy link

Describe the bug

I would expect change event to provide new selected value. Or both new and old, but I only see old value.
Also, I noted that documentation https://primevue.org/colorpicker/#api.colorpicker.emits.change have obvious copy-paste error:
change | event Callback to invoke when a chip is added.

Reproducer

https://stackblitz.com/edit/vpfxjg?file=src%2FApp.vue

PrimeVue version

3.45.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

Chrome 120, Windows 10

Steps to reproduce the behavior

  1. Go to link
  2. open Dev console
  3. change colorpicker value few times
  4. obsever printed values in console

Expected behavior

value in the Change event should be new, or (better) both new and old

@yureckey yureckey added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 27, 2023
@tugcekucukoglu tugcekucukoglu 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 Jan 5, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Jan 24, 2024
@tugcekucukoglu tugcekucukoglu modified the milestones: 3.47.0, 3.48.0 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants