vue2-datepicker icon indicating copy to clipboard operation
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

Open liwuyi27 opened this issue 2 years ago • 1 comments

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

liwuyi27 avatar Nov 08 '22 16:11 liwuyi27

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>

mengxiong10 avatar Nov 12 '22 11:11 mengxiong10