Materialize CSS Datepicker Auto-Close (FIXED)

enter image description here

Hi there!

For future reference, in case that you guys encountered this bug on Materialize CSS datepicker wherein the autoclose doesn't work; here is a short code fix (I assumed that you are using this release # 1.0.0-rc.2)

onSelect    :   function() {
      $( '.confirmation-btns .datepicker-done' ).click();
}

// This code come in handy (although a bit hacky)


Did you like the post? Help the author stay up! any amount will be a great help :) Just click the link below