JSFiddle - React, Tailwind, and code Playground
HTML
<input id="datepicker" type="text"/>
CSS
body{
height:2000px;
}
JavaScript
$(document).ready(function () {
$("#datepicker").datepicker();
$(window).bind('scroll',function () {
$("#ui-datepicker-div").hide();
});
});