I have a button on a page that calls a modal having datepicker.
If this button is at top (I don\'t have to scroll page to click), modal opens and datepicker displays
I had the same problem when using it with Bootstrap 4.1.1. The datepicker popover was appeareing on to the top of the input element.
I fixed it using this CSS:
/* fix bootstrap-datepicker positional bug */ .datepicker { transform: translate(0, 3.1em); }