flatpickr / flatpickr

lightweight, powerful javascript datetimepicker with no dependencies

Home Page:https://flatpickr.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug Report: Cannot getDate when using allowInput and allowInvalidPreload

LeonardoDB opened this issue · comments

When using allowInput: true and allowInvalidPreload: true, we encounter the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'getDate'). As demonstrated in the JSFiddle below:

https://jsfiddle.net/leonardodalbosco22/5m1adgyu/8/

Your Environment

  • flatpickr version used: 4.6.13
  • Browser name and version: Google Chrome 122.0.6261.129 (Official Build) (arm64)
  • OS and version: Sonoma 14.1