Fixed the issue with the datepicker hiding when the user interacts with the datepicker