fix autoclose on datepicker and show on icon click