You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to init the date picker programmatically, you should use the jQuery version. Vanilla one does not take care of options.
constoptions={autoClose : true,};// BROKEN: date picker correctly bind, BUT options are not takedocument.addEventListener('DOMContentLoaded',function(){constelems=document.querySelectorAll('.datepicker');constinstances=M.Datepicker.init(elems,options);});// WORKING : date picker correctly bind, AND options are correctly take$(document).ready(function(){$('.datepicker').datepicker(options);});
Version used: 1.0.0.rc2
Browser Name and version: latest Chrome
Operating System and version (desktop or mobile): osx, ubuntu, windows
The text was updated successfully, but these errors were encountered:
When you try to init the date picker programmatically, you should use the jQuery version. Vanilla one does not take care of options.
The text was updated successfully, but these errors were encountered: