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?