closeOnClickInPopup should close on click instead of on mousedown.