bootstrap-datepicker
bootstrap-datepicker copied to clipboard
Datepicker no longer confined to element
Expected behaviour
In previous versions (verified working 1.9.0) this code:
<div>Nov. 2020 <button class="btn btn-sm btn-link btn-extend date"><i class="fas fa-history"></i></button></div>
$(".btn-extend")}.datepicker({
viewMode: "months",
minViewMode: "months",
format: "yyyy-mm"
});
would produce this clickable button:
That when clicked, would pop up the datepicker:
(fiddle: https://jsfiddle.net/5otfvcxz/)
Actual behaviour
As of 1.10.0, it looks like this:
(fiddle: https://jsfiddle.net/5otfvcxz/1/)
Same issue. the PR that caused it is https://github.com/uxsolutions/bootstrap-datepicker/pull/2247
I have the same issue after upgrading to 1.10 as well. Any workaround or fix available? I'm not a fan of replacing this library with another one just because of this issue, would like to continue using bootstrap-datepicker
The fact, that there is not a single answer on this massive BC break shows that it's maybe time to find another lib for the job...
Please fix this