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

Explicitly pass current time as now with Flatpickr options #534

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

spohlenz
Copy link
Member

This PR prevents the current date within Flatpickr instances from becoming stale between Turbo page loads, by explicitly passing the current now Date with the initialization options.

The core issue seems to be related to flatpickr/flatpickr#3004.

@spohlenz spohlenz merged commit 2179318 into main Dec 26, 2024
44 checks passed
@spohlenz spohlenz deleted the flatpickr-now-fix branch December 26, 2024 22:24
@coveralls
Copy link

Coverage Status

coverage: 91.449%. remained the same
when pulling b91ea11 on flatpickr-now-fix
into 6118b66 on main.

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

Successfully merging this pull request may close these issues.

2 participants