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

Picklist events not always return an array #10284

Closed
john8329 opened this issue May 31, 2021 · 0 comments
Closed

Picklist events not always return an array #10284

john8329 opened this issue May 31, 2021 · 0 comments
Assignees
Labels
LTS-PORTABLE Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@john8329
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
The picklist component emits these events:

(onMoveToTarget)="test($event)"
(onMoveAllToTarget)="test($event)"
(onMoveToSource)="test($event)"
(onMoveAllToSource)="test($event)"

Sometimes the event.items returns an array and sometimes it has the object. I think it's specific to the event fired.

Expected behavior
I'd expect it to always return an array even for a single item, as it's documented this way.

event.items: Moved items array
  • Angular version: 11.2.14

  • PrimeNG version: 11.4.0

  • Browser: Chrome

@yigitfindikli yigitfindikli added Status: Pending Review Issue or pull request is being reviewed by Core Team Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels May 31, 2021
@yigitfindikli yigitfindikli self-assigned this Jun 4, 2021
@yigitfindikli yigitfindikli modified the milestones: 12.Future, 12.0.0-Final Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants