From 0b8d73807462ab9ade49fa4078b27b2d7747ff49 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:35:34 +0800 Subject: [PATCH] Adjust additional notice reset calls --- src/scripts/choices.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index 464d0c68..78fe234a 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -826,6 +826,7 @@ class Choices { if (!choice) { return this; } + this._clearNotice(); this._store.dispatch(removeChoice(choice)); // @todo integrate with Store this._searcher.reset(); @@ -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, {