Fixed dropdown closing before user can make a selection

Fixed the issue where users could not select an option from the post type dropdown