fix for selecting all option
This commit is contained in:
parent
2ac396549c
commit
b7ff2c01a5
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ function issueSelectHandler(event) {
|
|||
});
|
||||
|
||||
// show the selected options
|
||||
var items = document.querySelectorAll(`.issues-list .${selectedOption}`);
|
||||
var selectedOption = selectedOption === 'all' ? 'li' : `.${selectedOption}`;
|
||||
var items = document.querySelectorAll(`.issues-list ${selectedOption}`);
|
||||
items.forEach(function(item) {
|
||||
item.style.display = 'block'
|
||||
item.parentElement.closest('li').style.display = 'block';
|
||||
|
|
|
|||
Loading…
Reference in a new issue