Skip to content

Commit

Permalink
Adjust additional notice reset calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Sep 2, 2024
1 parent a2cb1c7 commit 0b8d738
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ class Choices {
if (!choice) {
return this;
}
this._clearNotice();
this._store.dispatch(removeChoice(choice));
// @todo integrate with Store
this._searcher.reset();
Expand Down Expand Up @@ -1456,8 +1457,8 @@ class Choices {
const wasSearching = this._isSearching;
this._currentValue = '';
this._isSearching = false;
this._clearNotice();
if (wasSearching) {
this._clearNotice();
this._store.dispatch(activateChoices(true));

this.passedElement.triggerEvent(EventType.search, {
Expand Down

0 comments on commit 0b8d738

Please sign in to comment.