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

In multiselect "Only 3 values can be added" is displayed even if there are choices #1249

Open
louisschandeler opened this issue Jan 3, 2025 · 0 comments
Labels

Comments

@louisschandeler
Copy link

Describe the bug
If you select all possible choices (and you add max-item-count="3"), dropdown will show "Only 3 values can be added", which is correct. But if you remove at least one value, text is still visible, even if there value to choose from.
image

To Reproduce
Steps to reproduce the behavior:

  1. Create Multiple select input with some values
  2. Add max-item-count="3" params
  3. Select 3 choices
  4. Remove 1 or more choices
  5. Open select again and there is still text "Only 3 values can be added", see screenshot above.

Expected behavior
Text "Only 3 values can be added" should not be displayed when there are values, that can be selected.

Choices version and bundle

  • Version: 11.0.3

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome

Thanks in advance for your help

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

No branches or pull requests

1 participant