Line 18: | Line 18: | ||
// Close the dropdown if the user clicks outside of it | // Close the dropdown if the user clicks outside of it | ||
+ | $('body').removeClass('open'); | ||
window.onclick = function(e) { | window.onclick = function(e) { | ||
if (!e.target.matches('.dropbtn')) { | if (!e.target.matches('.dropbtn')) { |
Revision as of 06:43, 29 October 2017