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

multi-selectable Select and Combobox value is unintentionally sorted when opening the listbox #1433

Closed
erm1116 opened this issue Apr 19, 2024 · 0 comments · Fixed by #1434
Closed

Comments

@erm1116
Copy link
Contributor

erm1116 commented Apr 19, 2024

🐛 Bug report

When set the multiple props to true, Select and Combobox machine's selectedItems is unintentionally sorted.

💥 Steps to reproduce

  1. use Select or Combobox with multiple=true
  2. Select some items
  3. close the listbox
  4. open the listbox again, value is unintentionally sorted
CleanShot.2024-04-20.at.03.39.14.mp4

💻 Link to reproduction

CodeSandbox reproduction: CodeSandbox

🧐 Expected behavior

selected value is not sorted when opening

🧭 Possible Solution

🌍 System information

Software Version(s)
Zag Version 0.47.0
Browser Arc 1.39.0 (48951), Chromium Engine Version 124
Operating System Mac OS 14.3.1

📝 Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant