Skip to content

Changing months animation gets "stuck" or frozen when displaying a single month #141

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

Open
robertguss opened this issue Apr 6, 2020 · 0 comments

Comments

@robertguss
Copy link

robertguss commented Apr 6, 2020

If you have :months-to-show="1" a couple of different bugs occur, when changing months with the keyboard arrows, depending upon which browser you are using.

In Safari, the calendar will get stuck between animations.
In Chrome, the animation works fine, however, the next month's date will not be selected and you will have to click with the mouse in the new month in order to begin using the keyboard again.

The issue appears to be occurring within the setFocusedDate method, as there is a 10ms setTimeout to focus the next date, according to the comments this is an ie11 "hack." I believe, the reason it is getting stuck is that it is trying to select the next date, however, the animation transition is 300ms. So it is trying to select the next date (10ms) before the animation is finished (300ms).

Locally I have managed to hack something together to get this working, I am more than happy to push up a PR, however, it looks like there has been no activity in this repo almost 1 year.

@MikaelEdebro can you let me know if you are still actively maintaining this and if you would like for me to submit this PR?

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

No branches or pull requests

1 participant