Tempus-dominus: Setting viewDate does not change UI

Created on 23 Aug 2016  路  4Comments  路  Source: Eonasdan/tempus-dominus

A view date can be set and the variable will update but this does not reflect in the UI until another event happens. For example if I set the viewDate to be one year in the future nothing will happen until I click next month causing it to jump appear to just a year and a month into the future.

v4

Most helpful comment

dp.change event is called, show widget 1 time no updates at UI, second all ok. This must be fixed

All 4 comments

A call to fillDate(); after the viewDate is set in the viewDate function works for me.

Just after this line:
https://github.com/Eonasdan/bootstrap-datetimepicker/blob/master/src/js/bootstrap-datetimepicker.js#L2312

dp.change event is called, show widget 1 time no updates at UI, second all ok. This must be fixed

Created a jsfiddle http://jsfiddle.net/mo287kpo/

Hello. Thanks for using my project. We鈥檙e closing all tickets/prs for v4 as it is no longer supported. We鈥檙e making way for a new version. Please read this blog post

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benbhale picture benbhale  路  5Comments

gouthamgit picture gouthamgit  路  4Comments

vogtdominikgit picture vogtdominikgit  路  3Comments

jnm2 picture jnm2  路  5Comments

woohling picture woohling  路  4Comments