active calendar updates correctly from datepicker