Date picker hiding when clicked outside the calender implemented.