Pick list events emit inconsistent types #10063
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-rb49kh?file=src%2Fapp%2Fapp.component.html
Current behavior
When dragging and dropping a picklist item, an array is emitted, where as when moving via double click or using a transfer button, an object with an items array property is emitted.
The documentation currently states the following:
onMoveToTarget | event.items: Moved items array
onMoveToSource | event.items: Moved items array
Expected behavior
When moving items in either fashion, the types emitted should be the same, as per the documentation.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
To ensure that the documentation is accurate and the behaviour is consistent across all events that use the same event emitters
Please tell us about your environment:
Windows 10
VSCode
npm
Angular version: 11.2.7
PrimeNG version: 11.3.1
Browser: all
Language: TypeScript 4.1.5
Node (for AoT issues):
node --version
= v12.20.1The text was updated successfully, but these errors were encountered: