Hacky solution to opening and closing of select dropdown.