It was very troublesome. I also have a couple of date pickers located in some of the Bootstrap drop-down menus. I solved this in two ways.
The first uses jQuery to stop the event from bubbling once upon pressing the DatePicker button
$('.yourDatePicker').on('hide', function(event) { event.stopPropagation(); $(this).closest('.yourDropDown').one('hide.bs.dropdown', function(ev) { return false; }); });
Another, more permanent solution was to change the datepicker.js file itself, but it looks like you are using cdn datepicker. If you can download it and use it locally, you can hack it, you will find a code similar to this
click: function(e){ e.preventDefault(); var target = $(e.target).closest('span, td, th'), year, month, day; if (target.length === 1){ switch (target[0].nodeName.toLowerCase()){ ...ect...
If you add the e.stopPropagation () function to this area, for example,
click: function(e){ e.preventDefault(); e.stopPropagation(); // <-- add this var target = $(e.target).closest('span, td, th'), year, month, day; if (target.length === 1){ switch (target[0].nodeName.toLowerCase()){
your date pickers will stop interfering with your other DOM elements, although this solution is more widespread, and I would check that it does not affect other areas of your code.