Bootstrap-datepicker: Regression: changeDate event is broken for manual date input since 1.7.1

Created on 21 Jun 2018  路  6Comments  路  Source: uxsolutions/bootstrap-datepicker

Expected behaviour

When typing in the date input field and thus entering a date manually or changing the date, the changeDate event should be triggered

Actual behaviour

This is a regression since version 1.6.1. At least in 1.7.1 and 1.8.0, the changeDate event is broken when manually entering/changing the date in the input field

Datepicker version used

1.8.0

I have a #2367 ready to fix the issue. Unfortunately, I did not get feedback on it, so I assume I have to open a ticket.

Most helpful comment

Could anyone please have a look at this?

All 6 comments

Could anyone please have a look at this?

Hello guys, this issue is still active in 1.9.0 with chrome last version.

its a really bad bug, im surprise it was not solved in two years.

Is this library still active ?

Agreed - I was surprised that 1.9 was released without this having been addressed. Would be nice to get a fix for this.

as a workaround guys you can listen to the input change event, it will work on both case (select date on the date picker or write directly)
var lObj = $('#' + id); lObj.datepicker(); lObj.on('change', function (event, items) { var lDate = lObj.datepicker('getUTCDate'); //do what you want with the date });

But im still not sure if i want in my app a library with this kind of bug...

Any update on this, please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DHeinrichs picture DHeinrichs  路  5Comments

aifrim picture aifrim  路  5Comments

giovannigaspar picture giovannigaspar  路  3Comments

Erwane picture Erwane  路  6Comments

jneuhaus picture jneuhaus  路  3Comments