bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

Fix resetting of viewDate

Open jgutix opened this issue 9 years ago • 2 comments

The update method will compare viewDate instead of date to correctly reset(or not) the viewDate attribute, viewDate will reset to date on the hide method. Fixes #617

jgutix avatar Jan 12 '17 17:01 jgutix

Please fix the tests before we can merge this.

AuspeXeu avatar Jan 27 '17 10:01 AuspeXeu

@AuspeXeu here is a refactored fix for the issue #617 my previous "solution" had the side effect of preventing the date to be updated by code, that's why the tests were failing. This solution makes the tests pass without problem, I'm also adding a new test specifically for the setDatesDisabled functionality. Also the tests were not running properly with the latest version of phamtomjs, which is pulled by travis, so I'm adding a fix for that too.

jgutix avatar Nov 15 '17 00:11 jgutix