amsul / amsul/pickadate.js

Cannot read property 'set' of undefined

Aperta
#1,207 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
7.6k
Fork
981
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to edit the min value of an existing picker on my page. I'm using
```
$('#FromDate').pickadate('picker').set('min', true);
$('#ToDate').pickadate('picker').set('min',true);
```

When putting the code in my document.ready I get the following error
**Cannot read property 'set' of undefined**

Placing the code in an $(window).on('load', function ()) works, but then the changes are not always applied to the datepicker Q.Q.

What am I missing here?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.