title: Materialize datepicker SelectOnClose not working
body: <p>I'm trying to create a datepicker with Materialize.
  According to the <a href="http://amsul.ca/pickadate.js/date/" rel="noreferrer">documentation</a> the datepicker should close when the user selects a date.</p>
  
  <p>That's not working in my page. I'm using the latest Chrome browser on Windows. I've tried IE browser, but there's the whole datepicker not showing... </p>
  
  <p><a href="http://www.babypoule.nl/new/newPoule.php" rel="noreferrer">Click here for my page</a> (input 3 and 4 are datepickers)</p>
  
  <p>My javascript:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#due_date').pickadate({
    monthsFull: [ 'januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december' ],
    monthsShort: [ 'jan', 'feb', 'maa', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec' ],
    weekdaysFull: [ 'zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag' ],
    weekdaysShort: [ 'zo', 'ma', 'di', 'wo', 'do', 'vr', 'za' ],
    today: 'vandaag',
    clear: 'verwijderen',
    close: 'sluiten',
    firstDay: 1,
    format: 'dd-mm-yyyy',
    formatSubmit: 'yyyy/mm/dd',
    closeOnSelect: true,
    selectMonths: true, // Creates a dropdown to control month
    selectYears: 3, // Creates a dropdown of 15 years to control year
    min: new Date()
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can anyone help me to fix these datepickers?</p>