Bootstrap-datepicker: Today Button click doesn't set current date when autoclose: True

Created on 26 Nov 2012  路  2Comments  路  Source: uxsolutions/bootstrap-datepicker

Today button has a strange behaviour. When autoclose parameter is set to True, after clicking "Today" on calendar widget widget is closing without setting current date. Don't know how to fix it.
My javascript:

 $(document).ready(function () {
    $('#datepicker').datepicker({
        todayHighlight: true,
        todayBtn: true,
        keyboardNavigation:true,
        autoclose: true,
      startView:3
    })
  })


Most helpful comment

Fixed in bf1b2c820076e3e11b0199abe43d00ddcc645995

If you wish the today button to set the date on the input and autoclose after that, use todayBtn: 'linked'

All 2 comments

Fixed in bf1b2c820076e3e11b0199abe43d00ddcc645995

If you wish the today button to set the date on the input and autoclose after that, use todayBtn: 'linked'

thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aifrim picture aifrim  路  5Comments

PlippiePlop picture PlippiePlop  路  6Comments

byrongits picture byrongits  路  3Comments

tdm00 picture tdm00  路  5Comments

kzpromo picture kzpromo  路  5Comments