fix for selecting all option

This commit is contained in:
Justin Cooper 2019-10-15 15:09:41 -05:00
parent 2ac396549c
commit b7ff2c01a5

View file

@ -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';