Commit 575d4491 authored by Clement Ho's avatar Clement Ho

Fixed bug where filters were not being reset after being cleared

parent 85f17935
...@@ -247,15 +247,16 @@ ...@@ -247,15 +247,16 @@
this.filteredSearchInput.value = ''; this.filteredSearchInput.value = '';
this.clearSearchButton.classList.add('hidden'); this.clearSearchButton.classList.add('hidden');
// Reset Filters
this.mapping[this.currentDropdown].reference.resetFilters();
// Force dropdown to hide // Force current dropdown to hide
this.mapping[this.currentDropdown].reference.hideDropdown(); this.mapping[this.currentDropdown].reference.hideDropdown();
// Re-Load dropdown // Re-Load dropdown
this.setDropdown(); this.setDropdown();
// Reset filters for current dropdown
this.mapping[this.currentDropdown].reference.resetFilters();
// Reposition dropdown so that it is aligned with cursor // Reposition dropdown so that it is aligned with cursor
this.updateDropdownOffset(this.currentDropdown); this.updateDropdownOffset(this.currentDropdown);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment