Fix dropdowns getting dismissed when clicking on mobile.