Skip to content

Commit

Permalink
Fix Notice for max item limit is removed permanently if you keep typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Dec 21, 2024
1 parent 0e97975 commit 6c38e39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@ class Choices {

if (!config.singleModeForMultiSelect && maxItemCount > 0 && maxItemCount <= this._store.items.length) {
this.choiceList.element.replaceChildren('');
this._notice = undefined;
this._displayNotice(
typeof maxItemText === 'function' ? maxItemText(maxItemCount) : maxItemText,
NoticeTypes.addChoice,
Expand Down

0 comments on commit 6c38e39

Please sign in to comment.