Fix for datepicker modal issue