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

Calendar does not scroll to minDate when it's dynamically set #1872

Closed
TravisRick opened this issue Dec 10, 2021 · 3 comments
Closed

Calendar does not scroll to minDate when it's dynamically set #1872

TravisRick opened this issue Dec 10, 2021 · 3 comments

Comments

@TravisRick
Copy link

TravisRick commented Dec 10, 2021

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/morning-morning-5ke6n?file=/src/App.vue

Current behavior
The calendar does not scroll to the minimal departure date when it's dynamically set. It always shows the current month.

Expected behavior
When opening departure date it should scroll to the minimal departure date.

Minimal reproduction of the problem with instructions
Steps to reproduce:

  • Select a random arrival date in 2022
  • Open departure date
  • The minimal departure date is set, but the calendar does not scroll to the minimal departure date.

Please tell us about your environment:

  • Vue version: 3.2.6

  • PrimeVue version: 3.10.0

  • Browser: All

@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 27, 2022
@tugcekucukoglu tugcekucukoglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label May 31, 2022
@tugcekucukoglu
Copy link
Member

https://codesandbox.io/s/reverent-gwen-iqgtgf?file=/src/App.vue This example seems to be working.

@alexandrapopa96
Copy link

@tugcekucukoglu the issue is still there. Please check the example applied on your link: https://codesandbox.io/s/adoring-water-4fcvnn?file=/src/App.vue

Steps to reproduce:

Select a random arrival date in 2022
Open departure date
The minimal departure date is set, but the calendar does not show the right month (for the minimal departure date).

@alexandrapopa96
Copy link

I reopened the issue: #4157

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