I recently encountered an issue with a bootstrap template where I needed to incorporate a datepicker within a modal. The modal contains scrollable content, but when I clicked on the datepicker field and scrolled the page, the datepicker moved with the parent page while the modal content remained static. Conversely, when scrolling within the modal, the datepicker remained fixed in position as the parent page did not scroll. Does anyone have suggestions on how to make the modal serve as the reference point for the datepicker within Bootstrap?