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

Multiselect: Missing itemValue in onChange event #14100

Closed
Kisters-BS opened this issue Nov 13, 2023 · 4 comments
Closed

Multiselect: Missing itemValue in onChange event #14100

Kisters-BS opened this issue Nov 13, 2023 · 4 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Kisters-BS
Copy link
Contributor

Kisters-BS commented Nov 13, 2023

Describe the bug

Since version 16.7.0 the onChange event does not emit itemValue.

See the regression by comparing the versions:
16.6.0...16.7.0

Working example with version 16.6.0: https://stackblitz.com/edit/4a9zpc-afbx9w

Environment

See stackblitz

Reproducer

https://stackblitz.com/edit/4a9zpc

Angular version

16.2.0

PrimeNG version

16.7.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

itemValue is emitted by the onChange event

@Kisters-BS Kisters-BS added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 13, 2023
@ashikjs
Copy link
Contributor

ashikjs commented Nov 14, 2023

@Kisters-BS I can see itemvalue with onChange event.

Screenshot from 2023-11-14 10-56-35

@Kisters-BS
Copy link
Contributor Author

@ashikjs In your console log I can also only see originalEvent and value. There should also be itemValue, see: https://primeng.org/multiselect#api.multiselect.events.MultiSelectChangeEvent

@cetincakiroglu cetincakiroglu 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 Nov 14, 2023
@cetincakiroglu cetincakiroglu added this to the 16.8.0 milestone Nov 14, 2023
@ashikjs
Copy link
Contributor

ashikjs commented Nov 14, 2023

@Kisters-BS Thanks now, understand.

@Kisters-BS
Copy link
Contributor Author

I have tested the fix, it works! Thank you 😊

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

No branches or pull requests

4 participants