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 multi select and move does not work if selecting items in reverse order #5046

Closed
FirstVertex opened this issue Feb 1, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@FirstVertex
Copy link
Contributor

Current behavior
When I multi select items in a Picklist and push move, nothing happens. This bug only happens if I selected the items from bottom to top (instead of sequentially).

Expected behavior
I expect the multi-selected items to move when I push the move buttons.

Minimal reproduction of the problem with instructions

  1. Click the 3rd item in the Available list (Renault 2005)
  2. Ctrl+Click the 2rd item in the Available list (Audi 2011)
  3. Click the Move up button on the left list
  4. Notice nothing happened when you push move up button

See demo: http://plnkr.co/edit/w7ehXk?p=preview

What is the motivation / use case for changing the behavior?
User needs to be free to choose items in any order, not just the sequential order.

Please tell us about your environment:
Windows 10, Visual Studio 2017

  • Angular version: 2.0.X
    5.2.1

  • PrimeNG version: 2.0.X
    5.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    all

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TypeScript

FirstVertex added a commit to FirstVertex/primeng that referenced this issue Feb 5, 2018
Fixes #[5046](primefaces#5046) Picklist multi select and move does not work if selecting items in reverse order
@cagataycivici cagataycivici self-assigned this Mar 5, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 5, 2018
@cagataycivici cagataycivici added this to the 5.2.1 milestone Mar 5, 2018
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

2 participants