Open carltierney opened 6 years ago
cool thanks
@carltierney I don't think these changes comply with the latest version 5.0.0. Could you PLEASE update the code?
@carltierney Actually there is a bug in your code:
if(koDate && typeof(koDate) !== 'object'){
var date = new Date(koDate);
picker.date(koDate);
}
should be:
if(koDate && typeof(koDate) !== 'object'){
var date = new Date(koDate);
picker.date(date);
}
also this: typeof(koDate) !== 'object') prevents it to ever enter the statement. It seems that it should be: if (koDate) only.
Please let me know.
I made some modifications to your knockout binding that you had on the original github project. Feel free to include it in your documentation. It handles nulls, and avoids the moment constructor warnings.