Only close the dropdown when an element is fully clicked (not just moused up).