Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 #723

Open
liwuyi27 opened this issue Nov 8, 2022 · 1 comment

Comments

@liwuyi27
Copy link

liwuyi27 commented Nov 8, 2022

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 liwuyi27 changed the title 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 [Bug] [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 Nov 9, 2022
@mengxiong10
Copy link
Owner

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants