Skip to content

Commit

Permalink
Reset notices after adding a new choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Sep 2, 2024
1 parent c287735 commit 72be11d
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 @@ -2082,6 +2082,7 @@ class Choices {
(choice.element as HTMLOptionElement).value = choice.value;
}

this._clearNotice();
this._store.dispatch(addChoice(choice));

if (choice.selected) {
Expand Down

0 comments on commit 72be11d

Please sign in to comment.