I am using flatpickr datepicker to allow users to choose a date. However, the datepicker dialog is not showing up in most of the cases, even though the input field is visible when I inspect. Moreover, even though I am not using flatpickr-months, it shows up on the UI in a very weird manner. What could be causing the issue?
JQuery
flatpickr('.flatpickr.js-flatpickr-date', {
enableTime: false,
dateFormat: "Y-m-d"
});
HTML
<input type="date" class="flatpickr js-flatpickr-date" name="date-planted" placeholder="Select date here"/>
Output
The flatpickr datepicker does not show up.
This is the flatpickr-months output I am talking about which is nowhere specified by me in the code and is showing up unnecessarily in weird manner

