amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

TypeError: d is null when using set method #1110

Open yazilim-crmturizm opened 6 years ago

yazilim-crmturizm commented 6 years ago

Got an error TypeError: d is null when try to use "set" method Ex.

$('.datepicker-end').pickadate({
    format: 'dd.mm.yyyy',
    min: new Date(),
    editable: false,
    onSet: function(context) {
        $('.datepicker-start').pickadate('set','min',new Date(context.select));
    }
});
$('.datepicker-start').pickadate({
    format: 'dd.mm.yyyy',
    min: new Date(),
    editable: false,
    onSet: function(context) {
        $('.datepicker-end').pickadate('set','min',new Date(context.select));
    }
});