uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.68k stars 6.06k forks source link

Datepicker no longer confined to element #2683

Open eladavron opened 1 year ago

eladavron commented 1 year ago

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: image That when clicked, would pop up the datepicker: image

(fiddle: https://jsfiddle.net/5otfvcxz/)

Actual behaviour

As of 1.10.0, it looks like this: image (fiddle: https://jsfiddle.net/5otfvcxz/1/)

mmarton commented 1 year ago

Same issue. the PR that caused it is https://github.com/uxsolutions/bootstrap-datepicker/pull/2247

toxpal commented 1 year ago

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

mmarton commented 1 year ago

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...

tomsommer commented 11 months ago

Please fix this