Calendar SetDate did not change the date UI

Calendar SetDate did not change the date UI

Product Name: dhtmlxSuite
Version: 5.0.2
Edition: Professional

ko.bindingHandlers.dhtmlXCalendar = {
    init: function (element, valueAccessor, allBindingsAccessor) {        
        var calendar = ko.utils.domData.get(element, 'dhtmlXCalendar');
        calendar.attachEvent("onChange", function (date, state) {
            // Este evento no lo lanza !!!
        });                
        calendar.attachEvent("onClick", function (date) {            
            var observable = valueAccessor();    
            observable(date);            
        });
    },
    update: function (element, valueAccessor) {
        var value = ko.utils.unwrapObservable(valueAccessor());
        var _calendar = ko.utils.domData.get(element, 'dhtmlXCalendar');        
        if (_calendar) {
            _calendar.setDate(value);
        }
    }
};

When I opened and closed the calendar without changing the date, the value is updated by setting it to SETDATE (VALUE).

Any solution for this?

Hi,

The same API works correctly in a standalone sample
Check snippet.dhtmlx.com/d0884c739

What is the “value” is above case? Is it a date object or some other text|object?