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

Flatpickr monthSelectPlugin doesnt highlight correct month, when data is loaded #2669

Closed
koesper opened this issue Mar 16, 2022 · 1 comment

Comments

@koesper
Copy link

koesper commented Mar 16, 2022

https://jsfiddle.net/koesper/y9o4vL0m/

Your Environment

  • flatpickr version used: latest from npm cdn: 4.6.11
  • Browser name and version: tested in latest Chrome Canary, Firefox Developer edition and Safari 15.3
  • OS and version: MacOS 12.2.1

The problem:

If you use the monthSelectPlugin and prefill the field with a date, the wrong month (always January) is highlighted.
When you change the value, and re-open the picker, it does work.

koesper pushed a commit to koesper/flatpickr that referenced this issue Mar 17, 2022
…s set currentmonth to 0, not the actual selected month
koesper pushed a commit to koesper/flatpickr that referenced this issue Mar 17, 2022
koesper pushed a commit to koesper/flatpickr that referenced this issue Mar 20, 2022
…s set currentmonth to 0, not the actual selected month
koesper pushed a commit to koesper/flatpickr that referenced this issue Mar 20, 2022
…s set currentmonth to 0, not the actual selected month
@fabiomargarido
Copy link

fabiomargarido commented Mar 31, 2022

Somewhat related to this issue, but not exactly the same, is the fact that if minDate is in the future, the current month is highlighted even though it is not selectable. Let me know if it would make more sense to create a separate issue for this please.

@chmln chmln closed this as completed in 9a08eab Apr 14, 2022
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

2 participants