We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a3cfc commit 31bd068Copy full SHA for 31bd068
options/difficulyDropdown.js
@@ -85,16 +85,22 @@ class DifficultyDropdown {
85
}
86
87
toggleList() {
88
-
+ this.list.style.display = this.list.style.display === 'none' ? 'block' : 'none';
89
+ if (this.list.style.display === 'block') {
90
+ this.searchInput.value = '';
91
+ this.filterTags();
92
+ this.searchInput.focus();
93
+ }
94
95
96
closeList() {
97
+ this.list.style.display = 'none';
98
99
- selectDifficulty() {
100
+ setDifficulty(difficulties) {
101
+ this.difficulties = difficulties;
102
+ this.filterDifficulties = ['all', ...difficulties];
103
+ this.renderOptions();
104
105
106
window.DifficultyDropdown = DifficultyDropdown;
0 commit comments