Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 540: | Line 540: | ||
document.body.addEventListener('click', function (event) { | document.body.addEventListener('click', function (event) { | ||
const filterPane = document.getElementById('dct-filters'); | const filterPane = document.getElementById('dct-filters'); | ||
if (!filterPane.contains(event.target) && filterPane.classList.contains('open')) { | if (!filterPane.contains(event.target) | ||
&& event.target !== document.querySelector('#filter-bar .large-button') | |||
&& filterPane.classList.contains('open') | |||
) { filterPane.classList.remove('open'); } | |||
}, { passive: true }); | }, { passive: true }); | ||
</script> | </script> |
Revision as of 16:23, 6 September 2022
Development verstion of the DCT List.
Not ready for production!