ankurk91 / vue-bootstrap-datetimepicker

Vue.js component for eonasdan bootstrap datetimepicker
MIT License
223 stars 66 forks source link

Datepicker reactive config issue #36

Closed spaceIess closed 6 years ago

spaceIess commented 6 years ago

I'm submitting a change datepicker config enabledDates issue

Tell about your platform

Current behavior Change config enabledDates to something

Expected behavior The calendar should disable other days

Actual The state has changed but calendar doesn't disable the dates

jsfiddle https://jsfiddle.net/ectfvw7r/4/

ankurk91 commented 6 years ago

Don't know why but it does not works with plain string. Passing moment object works well. I found same behaviour with plain js version.

Vue.set(this.options, "enabledDates", [moment("2018-06-23")])

Checkout the updated fiddle https://jsfiddle.net/ectfvw7r/13/