Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Close the dropdown menu if the user clicks outside of it
- window.onclick = function (event) {
- if (!event.target.matches('.bulk-dropbtn')) {
- var dropdowns = document.getElementsByClassName("bulk-dropdown-content");
- var i;
- for (i = 0; i < dropdowns.length; i++) {
- var openDropdown = dropdowns[i];
- if (openDropdown.classList.contains('show')) {
- openDropdown.classList.remove('show');
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment