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: Filtering bug, when moving item to target list #14334

Closed
PranKe01 opened this issue Dec 12, 2023 · 1 comment
Closed

PickList: Filtering bug, when moving item to target list #14334

PranKe01 opened this issue Dec 12, 2023 · 1 comment
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@PranKe01
Copy link

Describe the bug

When the filter in source list is active and we move an selected item, which is filtered out, to the target list, the filtered source list will be wrong.

Environment

Environment independent.

Reproducer

https://primeng.org/picklist

Angular version

16.0.0

PrimeNG version

17.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.0.0

Browser(s)

Chrome

Steps to reproduce the behavior

  1. Go to https://primeng.org/picklist
  2. Go to the second pick list, with the filters
  3. Select "Blue Band" item
  4. While "Blue Band" is selected, type into the filter "Bracelet" -> The selected "Blue Band" will disappear, but the move buttons are still enabled.
  5. Click on the "right-arrow" button in the middle of the lists, to move the selected item to the right list.
  6. The "Blue Band" item will be moved to the right list (even though it was not visible) AND on the left list, one element dissapears, which should stay in the filtered list!

Expected behavior

When a selected item is filtered out, the move right button should be disabled
OR
When a filtered out item is moved to the right, the filtered items should not change

@PranKe01 PranKe01 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 12, 2023
@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 Dec 13, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 17.1.0, 17.1.1 Dec 13, 2023
@cetincakiroglu
Copy link
Contributor

Fixed in #14340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE 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

2 participants