I have been utilizing the vue-hotel-date-picker plugin and it's been functioning well. The problem arises when I use the disabled dates props; it disables the dates initially when initializing and updating on the calendar. However, when I update the disabled dates array on any button click event, it updates the array but does not reflect or render in the view component. I have attempted to debug it using the Vue.js Chrome extension.
Here is an image from the debugging process https://i.sstatic.net/zgIu0.png
Plugin link
Below is my HTML Code
<div class="box">
<h3>Check in only on Saturday and minimum stay of 10 days</h3>
<DatePicker
DatePickerID="01"
:disabledDates = "disabledDates"
:enableCheckout="true"
:minNights="10"
:useDummyInputs="false"
placeholder="StartDate ► EndDate"
/>
</div>
<button @click="onChangeDisableDates()" > Change Disable Dates </button>
JS
<script>
import DatePicker from 'components/HotelDatePicker.vue';
export default {
components: {
DatePicker
},
data () {
return {
disabledDates : ['2017-08-18']
}
},
methods : {
onChangeDisableDates () {
this.disabledDates.push("2017-08-19");
}
}
};
</script>
I am uncertain how to identify and resolve this issue; it could potentially be a problem with the plugin itself. Any assistance would be greatly appreciated!