Bootstrap datepicker not close automatically after picking a date

前端 未结 12 1635
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 12:41

I use the latest Bootstrap datepicker.js. All works fine except that when I pick a date from the drop down, it does not automatically close it. I searched web and tried to u

12条回答
  •  猫巷女王i
    2020-12-24 13:28

    1. Simply open the bootstrap-datepicker.js
    2. find : var defaults = $.fn.datepicker.defaults (Line 1391 in my case)
    3. set autoclose: true

    Save and refresh your project and this should do.

提交回复
热议问题