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: Default Time is Overridden When time-picker is true #1071

Open
jimliuxyz opened this issue Jan 17, 2025 · 0 comments
Open

Bug: Default Time is Overridden When time-picker is true #1071

jimliuxyz opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jimliuxyz
Copy link

Describe the bug
When enabling the time-picker in @vuepic/vue-datepicker, the time is automatically set to the current time (the time when the component is loaded), and any default time set in v-model or during initialization is overridden.

To Reproduce
Run the code below.

Code

<script setup>
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css'

import { ref } from 'vue';

const date = ref(new Date('2025-01-02T23:30:00'));
</script>

<template>
  <VueDatePicker v-model="date" time-picker format="HH:mm:ss" />
</template>

Desktop & mobile (please complete the following information):
Browser: Chrome
Library version: "@vuepic/vue-datepicker": "^11.0.1"

@jimliuxyz jimliuxyz added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Jan 17, 2025
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants