primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.55k stars 4.61k forks source link

Multiselect: Missing itemValue in onChange event #14100

Closed Kisters-BS closed 1 year ago

Kisters-BS commented 1 year ago

Describe the bug

Since version 16.7.0 the onChange event does not emit itemValue.

See the regression by comparing the versions: https://github.com/primefaces/primeng/compare/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

ashikjs commented 1 year ago

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

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

Kisters-BS commented 1 year ago

@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

ashikjs commented 1 year ago

@Kisters-BS Thanks now, understand.

Kisters-BS commented 1 year ago

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