vue2-datepicker
vue2-datepicker copied to clipboard
[Bug]I failed to select the time when i try to set disabled-time prop to restrict the time selection between hour:01:00 000 - hour:30:00 000
Vue2-datepicker version: ^3.11.0 Vue version: ^2.6.14 Browser: Google Chrome
Steps to reproduce click on the time1 input box
Reproduction Link or Source Code Reproduction Link
Expected behavior I can select the time between 2:01:00 000 - 2:30:00 000
Actual behavior I can not select the time between 2:01:00 000 - 2:30:00 000
You can set a valid defaultValue.
<date-picker type="time" :disabled-time="disabledTime1" v-model="time1" :default-value="new Date().setHours(2, 1, 0)"></date-picker>