Skip to content

Commit b287e7c

Browse files
committed
fix: was not calling onCHange for difficulties in the selectDifficulty function
1 parent 31bd068 commit b287e7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

options/difficulyDropdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class DifficultyDropdown {
8282
const textSpan = this.selected.querySelector('.difficulty-dropdown-selected-text');
8383
if (textSpan) textSpan.textContent = difficulty === 'all' ? 'All Difficulties' : difficulty;
8484
this.closeList();
85+
if (this.onChange) this.onChange(difficulty);
8586
}
8687

8788
toggleList() {

0 commit comments

Comments
 (0)