Contents of picker widget e.g. days of the month should be displayed.
Picker opens but contents are not displayed
1.6.1
Broken against jQuery 3.0.0 and 3.1.0
ditto
Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
If I'm reading this thread correctly, Bootstrap have addressed this:
https://github.com/twbs/bootstrap/issues/16834
However it's targeted at v3.3.7, which isn't available yet.
Okay, Bootstrap 3.3.7 is released. And Datepicker 1.7.0 isn't working. Any help? I can't get it working with jQuery 3.1.0 right now.
Same problem here. Any workaround other than going back to jQuery 2?
for now i'm using this in bower.json
"bootstrap-datepicker": "https://github.com/eternicode/bootstrap-datepicker.git#e48ea20"
e48ea20 is commit where correction has been made.
jQuery migrate shows the following:
JQMIGRATE: jQuery.unique is deprecated, use jQuery.uniqueSort
I should be able to make some time next week to look into this issue
Bit by this when upgrading NuGet packages. Previously Bootstrap didn't support jQuery 3, but now that they do I am free to upgrade. I get an empty date picker when jQuery 3 is in place.
Bootstrap v4 just added support for jQuery 3 with the alpha 3 milestone.
Running against that, I see an issue with display: none on .datepicker-months, datepicker-years, datepicker-decades, and datepicker-centuries. They all remain hidden even once div.datepicker is shown.
It seems that #1964 fixes the jquery3 issue. Can you guys test and confirm the patch?
@acrobat #1958 looked like a better (and cleaner) fix to me, but I don't have time to test it right now.
@glen-84 @acrobat I've updated my code with the fix from #1958 and it works fine for me.
PR #1958 was merged in master and the fix is backported to 1.6 in https://github.com/eternicode/bootstrap-datepicker/commit/a923be23ef98046f254206ff98366eb8b3fc6e1f. A new version (1.6.2) was pushed and published
@acrobat hi, can you explain why jQuery.unique was left in, and we have not merged jQuery.uniqueSort? uniqueSort is supported by jQuery 1.1.2+ . This appears to break the treeview for jquery-3.0.
I overlooked that extra fix, will make some time and change the method and push a new release!
@priley86 Can you test commit https://github.com/eternicode/bootstrap-datepicker/commit/df4542c95ba126a3847e5d275d71897b8f79b086 if this is enough for your issue?
@acrobat +1 this will resolve this issue
I've pushed a new release with the uniqueSort fix! https://github.com/eternicode/bootstrap-datepicker/releases/tag/v1.6.3
Anyone know how this gets pushed to NuGet?
@scott-xu maintains the nuget package! Ping @scott-xu
pushed
Most helpful comment
I should be able to make some time next week to look into this issue