nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
616 stars 191 forks source link

set_date should override default_date #209

Open multiwebinc opened 5 years ago

multiwebinc commented 5 years ago

If the default_date option is set to false, when calling pickmeup('.date').set_date(date); it is impossible to actually set the date of the element programatically. set_date() should change default_date for that element to true, so that the date will be displayed in the <input> element. Either that or provide a set_option() function to change any of the options. The only way I've found around this is to destroy and re-create the datepicker with that option set to true.