From 8937cac57aa2fa7469bfcced896070842b9d3b74 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Thu, 5 Sep 2024 02:27:10 +0800 Subject: [PATCH] Fix "no choices' notice wasn't cleared as expected --- src/scripts/choices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index 78be45d4..cedf9138 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -1443,7 +1443,7 @@ class Choices { if (noticeType !== NoticeTypes.addChoice) { if (!results.length) { this._displayNotice(resolveStringFunction(this.config.noResultsText), NoticeTypes.noResults); - } else if (noticeType === NoticeTypes.noResults) { + } else { this._clearNotice(); } }