#3067·flatpickr

Month select plugin won't update when using the method setDate

Author: carlosgrossiCreated Jan 9, 2025Updated Jun 24, 2026

The Problem:

The MonthSelect plugin will not stay in sync with the selected date when the method fp.setDate() is used to set the selected date. In this scenario, flatpickr will still show the previous date as selected instead of the one passed to fp.setDate()

Bug Reproduction:

https://jsfiddle.net/j6ka5q7n/8/

Your Environment

  • flatpickr version used: v4.6.13
  • Browser name and version: Chrome 131.0.6778.205 (Official Build) (arm64) / Safari Version 18.2 (20620.1.16.11.8)
  • OS and version: macOS 15.2 (24C101)