Fixed lingering reference to elem
Don't allow the click event on a dropdown to propagate