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 Report][3.4.0] Problem displaying <v-date-picker>, it does not appear by default on the allowed dates #18672

Open
alanscordoba opened this issue Nov 13, 2023 · 6 comments
Assignees
Labels
C: VDatePicker T: bug Functionality that does not work as intended/expected
Milestone

Comments

@alanscordoba
Copy link

Environment

Vuetify Version: 3.4.0
Vue Version: 3.3.8
Browsers: Chrome 119.0.0.0
OS: Windows 10, Windows

Steps to reproduce

Just view the sample example

Expected Behavior

In the example it appears in the month of November.

Actual Behavior

I hope it appears in December, since there are no dates available in November, and also the date initially selected is also in that month.

Reproduction Link

https://play.vuetifyjs.com/#...

@Mohib834
Copy link
Contributor

Mohib834 commented Nov 13, 2023

The problem seems to be with the date format you passed. It is invalid. It works when i pass the valid date like below -

Invalid - const datePicker = ref(new Date('2023/12/10T00:00:00-03:00'))
Valid - const datePicker = ref(new Date('2023-12-10T00:00:00-03:00'))

Here is the working example

@alanscordoba
Copy link
Author

Thanks for your response, but in my environment it doesn't work, since the data comes from an API. I'll try to explain it:

datePicker is initialized as const datePicker = ref()

Then, the data coming from the API is loaded. At that time when is initialized to the current month instead of the selected month based on the v-model date.

@johnleider johnleider added layer 8 issue You're doing it wrong and removed S: triage labels Nov 13, 2023
@johnleider johnleider self-assigned this Nov 13, 2023
@alanscordoba
Copy link
Author

alanscordoba commented Nov 15, 2023

Sorry to insist on this topic, but I think it is a bug, the component is not displayed correctly. I pass the link to play it, if you press the button you will see that the calendar appears, it is not displayed in the month of December, as expected, thank you:

Demonstration

I clarify that it is also happening in version 3.4.1

@johnleider
Copy link
Member

Sorry to insist on this topic, but I think it is a bug, the component is not displayed correctly. I pass the link to play it, if you press the button you will see that the calendar appears, it is not displayed in the month of December, as expected, thank you:

Demonstration

I clarify that it is also happening in version 3.4.1

Addressed in 6901d24

@alanscordoba
Copy link
Author

This problem had been resolved in 3.4.3, but reappeared in 3.4.8 and is maintained in subsequent versions.

@KaelWD KaelWD reopened this Jan 25, 2024
@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VDatePicker and removed layer 8 issue You're doing it wrong labels Jan 25, 2024
@KaelWD KaelWD added this to the v3.5.x milestone Jan 25, 2024
@KaelWD KaelWD self-assigned this Jan 25, 2024
@johnleider johnleider modified the milestones: v3.5.x, v3.6.x Apr 30, 2024
@KaelWD KaelWD modified the milestones: v3.6.x, v3.7.x Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDatePicker T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

4 participants