Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Time-picker with min-time and max-time props is not working correctly #38

Closed
ekkode opened this issue Nov 5, 2021 · 3 comments
Closed
Labels
question Further information is requested

Comments

@ekkode
Copy link

ekkode commented Nov 5, 2021

Describe the bug
Time-picker with min-time and max-time props together with a default time set. When the time-picker is opened is showing the browser time, not the time that was set by default. This is true also when the time was set pragmatically.

To Reproduce
The min-time / max-time props are set and also a default time.
Now when I click on the time-picker, the value displayed is current time of the browser and not that that was set by default.
Please check here: https://codesandbox.io/s/vue3-date-time-picker-demo-forked-j3qee?file=/src/components/Demo.vue

Expected behavior
I want that the time should start from the time configured not jumping to the browser time.
This is happening in version 2.3.3

@Jasenkoo
Copy link
Contributor

Jasenkoo commented Nov 5, 2021

Please check this video, I don't see any jumping in time when clicking. It is opening on 10:15

@Jasenkoo Jasenkoo self-assigned this Nov 5, 2021
@Jasenkoo Jasenkoo added the question Further information is requested label Nov 5, 2021
@ekkode
Copy link
Author

ekkode commented Nov 5, 2021

Sorry, it seams ok now.

It was strange because I have set @update:modelValue="setTime" and the event was triggered automatically when the timer was opened with the values browser hour and minutes. Now when I check it seams ok.

Maybe it was something from my cache or something...

@Jasenkoo
Copy link
Contributor

Jasenkoo commented Nov 5, 2021

Ok, I will leave it for today if something is still wrong, otherwise will close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant