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

clear button reverse items order #1251

Closed
lianee opened this issue Jan 9, 2025 · 0 comments · Fixed by #1265
Closed

clear button reverse items order #1251

lianee opened this issue Jan 9, 2025 · 0 comments · Fixed by #1265
Labels

Comments

@lianee
Copy link

lianee commented Jan 9, 2025

Describe the bug
when using options removeItemButton and shouldSort:false, each time the clear button is used, the list is reversed.

To Reproduce
Steps to reproduce the behavior:

  1. the list is in order [3,2,1], not sorted since we specified shouldSort:false
  2. Click on clear button
  3. the list is now [1,2,3]
  4. select an item and click the clear button
  5. the list is again reversed: [3,2,1]

Expected behavior
The list order should not change

Choices version and bundle

  • Version: v11 latest
@lianee lianee added the bug label Jan 9, 2025
ticktackk added a commit to ticktackk/Choices.js that referenced this issue Feb 12, 2025
@Xon Xon linked a pull request Feb 15, 2025 that will close this issue
Xon pushed a commit that referenced this issue Feb 15, 2025
* Fix clear button reverses item order with `shouldSort` set to `false` and using single mode #1251
@Xon Xon closed this as completed in #1265 Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant