Added support for close-on-click outside of the dropdown menu for touchscreen devices