-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
<Script setup> impossible to switch between dates #391
Comments
Doesn't it has to be
same with next() and moveToToday() ? |
Hi and thank you for your answer, If i add () at the end, the behavior is exactly the same. Nothing happened. If i console.log(calendar.value.prev) => I see the function but nothing happened. |
I have the same issue. Nothing happens.
|
I believe I found the solution, and I may have missed it in the documentation, but in order for the prev/next to work you need to set a v-model for the calendar with a date selected:
You don't need to import today, but you need to set selectedDate as a valid formatted date according to docs, and then the prev next works. |
Shouldn't this issue be closed? |
Hello team,
I can't reproduce it on codepen so i will try to be as clear as possible.
I'm under Vue 3.2 with composition api <script setup>.
The problem is that it's absolutely impossible to switch between date (prev, today and next).
When i click on a button, i see in the console that something happen but nothing really happen on the calendar.
Below my code :
The text was updated successfully, but these errors were encountered: