You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The element that shows the message Only ${maxItemCount} values can be added after the item limit is reached disappears too early and cannot be triggered again. After the limit is reached, if you type one character the message is shown in the dropdown. If you type one or more extra characters, the element is removed completely and permanently (unless you reload the page). It does not re-appear after deleting the text and typing again, or after leaving and re-entering the input. The issue occurs with type text and type select-multiple.
Type one character to make the notice Only 5 values can be added appear.
Type another character to make the same notice disappear.
Expected behavior
I would expect that the notice stays even if you type more than one character and that it re-appears if you clear the search input and make another attempt of adding or searching an item.
Screenshots
Not applicable.
Choices version and bundle
Version: v11.0.2
Desktop (please complete the following information):
OS: Ubuntu 22.04
Browser: Firefox
Version: 130
Smartphone (please complete the following information):
Not applicable.
Additional context
None.
The text was updated successfully, but these errors were encountered:
I don't have time to create a PR for this, however if you throw a this._renderNotice(); before the early return for displayNotice it will solve the issue.
Describe the bug
The element that shows the message
Only ${maxItemCount} values can be added
after the item limit is reached disappears too early and cannot be triggered again. After the limit is reached, if you type one character the message is shown in the dropdown. If you type one or more extra characters, the element is removed completely and permanently (unless you reload the page). It does not re-appear after deleting the text and typing again, or after leaving and re-entering the input. The issue occurs with typetext
and typeselect-multiple
.To Reproduce
Steps to reproduce the behavior:
Text inputs
.Only 5 values can be added
appear.Expected behavior
I would expect that the notice stays even if you type more than one character and that it re-appears if you clear the search input and make another attempt of adding or searching an item.
Screenshots
Not applicable.
Choices version and bundle
Desktop (please complete the following information):
Smartphone (please complete the following information):
Not applicable.
Additional context
None.
The text was updated successfully, but these errors were encountered: